Last change
on this file was 32, checked in by chronos, 6 months ago |
- Modified: Removed U prefix from units names.
- Modified: Use TFormEx for all forms.
|
File size:
702 bytes
|
Line | |
---|
1 | unit FormTable;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
|
---|
7 | DbEngine, FormEx;
|
---|
8 |
|
---|
9 | type
|
---|
10 |
|
---|
11 | { TFormTable }
|
---|
12 |
|
---|
13 | TFormTable = class(TFormEx)
|
---|
14 | ButtonOk: TButton;
|
---|
15 | ButtonCancel: TButton;
|
---|
16 | EditName: TEdit;
|
---|
17 | EditCaption: TEdit;
|
---|
18 | Label1: TLabel;
|
---|
19 | Label2: TLabel;
|
---|
20 | public
|
---|
21 | procedure Load(Table: TTable);
|
---|
22 | procedure Save(Table: TTable);
|
---|
23 | end;
|
---|
24 |
|
---|
25 |
|
---|
26 | implementation
|
---|
27 |
|
---|
28 | {$R *.lfm}
|
---|
29 |
|
---|
30 | { TFormTable }
|
---|
31 |
|
---|
32 | procedure TFormTable.Load(Table: TTable);
|
---|
33 | begin
|
---|
34 | EditName.Text := Table.Name;
|
---|
35 | EditCaption.Text := Table.Caption;
|
---|
36 | end;
|
---|
37 |
|
---|
38 | procedure TFormTable.Save(Table: TTable);
|
---|
39 | begin
|
---|
40 | Table.Name := EditName.Text;
|
---|
41 | Table.Caption := EditCaption.Text;
|
---|
42 | end;
|
---|
43 |
|
---|
44 | end.
|
---|
45 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.