-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStoragesForm.~pas
61 lines (50 loc) · 1.26 KB
/
StoragesForm.~pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
unit StoragesForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, DB, ADODB, Grids, DBGrids;
type
TFormStorage = class(TForm)
GroupBox1: TGroupBox;
GroupBox2: TGroupBox;
Splitter1: TSplitter;
DBGrid1: TDBGrid;
ADOConnection1: TADOConnection;
ADOQuery1: TADOQuery;
DataSource1: TDataSource;
DBGrid2: TDBGrid;
ADOConnection2: TADOConnection;
ADOQuery2: TADOQuery;
DataSource2: TDataSource;
Panel1: TPanel;
Button1: TButton;
Panel2: TPanel;
Button2: TButton;
procedure OnClose(Sender: TObject; var Action: TCloseAction);
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FormStorage: TFormStorage;
implementation
uses APForm, APoSForm;
{$R *.dfm}
procedure TFormStorage.OnClose(Sender: TObject; var Action: TCloseAction);
begin
Application.Terminate;
end;
procedure TFormStorage.Button1Click(Sender: TObject);
begin
FormAP.show;
AdoQuery1.Insert;
end;
procedure TFormStorage.Button2Click(Sender: TObject);
begin
FormAPoS.show;
AdoQuery2.Insert;
end;
end.