-
Notifications
You must be signed in to change notification settings - Fork 0
/
uPpal.pas
63 lines (52 loc) · 1.29 KB
/
uPpal.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
62
63
unit uPpal;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Menus,
System.Rtti, System.Bindings.Outputs, Data.Bind.EngExt, Fmx.Bind.DBEngExt,
Data.Bind.Components, FMX.StdCtrls, FMX.Controls.Presentation;
type
TfPPal = class(TForm)
MainMenu1: TMainMenu;
MenuItem1: TMenuItem;
MenuItem2: TMenuItem;
MenuItem3: TMenuItem;
BindingsList1: TBindingsList;
Panel1: TPanel;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
procedure MenuItem2Click(Sender: TObject);
procedure MenuItem3Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
fPPal: TfPPal;
implementation
{$R *.fmx}
uses uGestionar, uListar, uLogin;
procedure TfPPal.FormCreate(Sender: TObject);
begin
//Mostramos la pantalla de inicio
FLogin := TFLogin.Create(Self);
try
FLogin.ShowModal;
finally
Flogin.Free;
end;
end;
procedure TfPPal.MenuItem2Click(Sender: TObject);
begin
fGestionar := TfGestionar.Create(Self);
fGestionar.ShowModal;
end;
procedure TfPPal.MenuItem3Click(Sender: TObject);
begin
fListar := TfListar.Create(Self);
fListar.ShowModal;
end;
end.