main.pas
上传用户:blmaxia
上传日期:2010-02-17
资源大小:657k
文件大小:2k
- unit main;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls, jpeg, ExtCtrls, ComCtrls;
- type
- TMainform = class(TForm)
- Panel1: TPanel;
- PageControl1: TPageControl;
- TabSheet1: TTabSheet;
- TabSheet2: TTabSheet;
- Panel2: TPanel;
- Image1: TImage;
- Label1: TLabel;
- Button1: TButton;
- Button2: TButton;
- Button3: TButton;
- Button4: TButton;
- Button5: TButton;
- Button6: TButton;
- Button7: TButton;
- procedure FormCreate(Sender: TObject);
- procedure Button1Click(Sender: TObject);
- procedure Button2Click(Sender: TObject);
- procedure Button3Click(Sender: TObject);
- procedure Button4Click(Sender: TObject);
- procedure Button5Click(Sender: TObject);
- procedure Button6Click(Sender: TObject);
- procedure Button7Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- Mainform: TMainform;
- mypath:string;
-
- implementation
- uses book, reader, lend, infoquery;
- {$R *.dfm}
- procedure TMainform.FormCreate(Sender: TObject);
- begin
- mypath:=extractfilepath(paramstr(0));
- shortdateformat:='yyyy/mm/dd';
- end;
- procedure TMainform.Button1Click(Sender: TObject);
- begin
- bookform.show;
- end;
- procedure TMainform.Button2Click(Sender: TObject);
- begin
- readerform.show;
- end;
- procedure TMainform.Button3Click(Sender: TObject);
- begin
- lendform.show;
- end;
- procedure TMainform.Button4Click(Sender: TObject);
- begin
- close;
- end;
- procedure TMainform.Button5Click(Sender: TObject);
- begin
- queryform.show;
- end;
- procedure TMainform.Button6Click(Sender: TObject);
- begin
- button5click(sender);
- end;
- procedure TMainform.Button7Click(Sender: TObject);
- begin
- button5click(sender);
- end;
- end.