123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- unit MainPartner;
- {$MODE Delphi}
- interface
- uses
- LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls,
- ComCtrls, ExtCtrls, Grids, frmPartner, Menus,
- Snap7;
- type
- { TForm1 }
- TForm1 = class(TForm)
- NewActiveBtn: TButton;
- NewPassiveBtn: TButton;
- Timer1: TTimer;
- procedure FormCreate(Sender: TObject);
- procedure NewActiveBtnClick(Sender: TObject);
- procedure NewPassiveBtnClick(Sender: TObject);
- procedure Timer1Timer(Sender: TObject);
- procedure Exit1Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- Form1: TForm1;
- implementation
- {$R *.lfm}
- { TForm1 }
- procedure TForm1.Exit1Click(Sender: TObject);
- begin
- end;
- procedure TForm1.FormCreate(Sender: TObject);
- begin
- //
- end;
- procedure TForm1.NewActiveBtnClick(Sender: TObject);
- begin
- TPartnerForm.Create(Application).CreatePartner(_Active);
- end;
- procedure TForm1.NewPassiveBtnClick(Sender: TObject);
- begin
- TPartnerForm.Create(Application).CreatePartner(_Passive);
- end;
- procedure TForm1.Timer1Timer(Sender: TObject);
- Var
- Count : integer;
- begin
- //Count:=Par_PartnersCount;
- // StatusBar.Panels[0].Text:='Partners : '+IntToStr(Count);
- end;
- end.
|