-
Notifications
You must be signed in to change notification settings - Fork 10
/
msMain_Form.pas
56 lines (45 loc) · 1.11 KB
/
msMain_Form.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
unit msMain_Form;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls,
msDiagramm, FMX.Objects, FMX.ListBox,
msDiagramms,
msDiagrammsController
;
type
TmsMainForm = class(TForm)
Header: TToolBar;
Footer: TToolBar;
HeaderLabel: TLabel;
imgMain: TImage;
cbShapes: TComboBox;
btClear: TButton;
cbDiagramm: TComboBox;
btAdd: TButton;
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure btClearClick(Sender: TObject);
private
{ Private declarations }
FDiagramm : TmsDiagrammsController;
public
{ Public declarations }
end;
var
msMainForm: TmsMainForm;
implementation
{$R *.fmx}
procedure TmsMainForm.btClearClick(Sender: TObject);
begin
FDiagramm.Clear;
end;
procedure TmsMainForm.FormCreate(Sender: TObject);
begin
FDiagramm := TmsDiagrammsController.Create(imgMain, cbShapes, cbDiagramm, btAdd);
end;
procedure TmsMainForm.FormDestroy(Sender: TObject);
begin
FreeAndNil(FDiagramm);
end;
end.