-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAdminsForm.pas
51 lines (41 loc) · 1.03 KB
/
AdminsForm.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
unit AdminsForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, DB, ADODB, Grids, DBGrids;
type
TFormAdmin = class(TForm)
GroupBox1: TGroupBox;
GroupBox2: TGroupBox;
Splitter1: TSplitter;
DBGrid1: TDBGrid;
ADOConnection1: TADOConnection;
ADOQuery1: TADOQuery;
DataSource1: TDataSource;
DBGrid2: TDBGrid;
ADOQuery2: TADOQuery;
DataSource2: TDataSource;
Panel1: TPanel;
Button1: TButton;
procedure OnClose(Sender: TObject; var Action: TCloseAction);
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FormAdmin: TFormAdmin;
implementation
uses AddSellerForm;
{$R *.dfm}
procedure TFormAdmin.OnClose(Sender: TObject; var Action: TCloseAction);
begin
Application.Terminate;
end;
procedure TFormAdmin.Button1Click(Sender: TObject);
begin
AdoQuery1.Insert;
FormAddSeller.show;
end;
end.