-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuMain.pas
92 lines (75 loc) · 2.08 KB
/
uMain.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
unit uMain;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Menus;
type
TFmain = class(TForm)
MainMenu1: TMainMenu;
Archivo: TMenuItem;
Salir1: TMenuItem;
Mantenimiento1: TMenuItem;
Nuevaentrada1: TMenuItem;
Productos1: TMenuItem;
Porveedores1: TMenuItem;
Moneda1: TMenuItem;
Euro1: TMenuItem;
Peseta1: TMenuItem;
procedure Salir1Click(Sender: TObject);
procedure Nuevaentrada1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure Productos1Click(Sender: TObject);
procedure Porveedores1Click(Sender: TObject);
procedure FormActivate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Fmain: TFmain;
implementation
uses uEntradas, uDMmain, uProductos, uProveidors, Upublica;
{$R *.DFM}
procedure TFmain.Salir1Click(Sender: TObject);
begin
Fmain.close;
end;
procedure TFmain.Nuevaentrada1Click(Sender: TObject);
begin
Application.CreateForm(TFentradas, Fentradas);
show;
end;
procedure TFmain.FormCreate(Sender: TObject);
begin
Application.CreateForm(TDMmain, DMmain);
end;
procedure TFmain.FormClose(Sender: TObject; var Action: TCloseAction);
begin
release;
DMmain.free;
end;
procedure TFmain.Productos1Click(Sender: TObject);
begin
if estaFormulari('Fproductos') then Fproductos.windowstate:=wsMaximized
else begin
Application.CreateForm(TFproductos, Fproductos);
show;
end;
end;
procedure TFmain.Porveedores1Click(Sender: TObject);
begin
if estaFormulari('Fproveidors') then Fproveidors.windowstate:=wsMaximized
else begin
Application.CreateForm(TFproveidors, Fproveidors);
show;
end;
end;
procedure TFmain.FormActivate(Sender: TObject);
begin
//Application.CreateForm(TFentradas, Fentradas);
Application.CreateForm(TFproductos, Fproductos);
show;
end;
end.