MainPartner.pas 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. unit MainPartner;
  2. {$MODE Delphi}
  3. interface
  4. uses
  5. LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  6. Dialogs, StdCtrls,
  7. ComCtrls, ExtCtrls, Grids, frmPartner, Menus,
  8. Snap7;
  9. type
  10. { TForm1 }
  11. TForm1 = class(TForm)
  12. NewActiveBtn: TButton;
  13. NewPassiveBtn: TButton;
  14. Timer1: TTimer;
  15. procedure FormCreate(Sender: TObject);
  16. procedure NewActiveBtnClick(Sender: TObject);
  17. procedure NewPassiveBtnClick(Sender: TObject);
  18. procedure Timer1Timer(Sender: TObject);
  19. procedure Exit1Click(Sender: TObject);
  20. private
  21. { Private declarations }
  22. public
  23. { Public declarations }
  24. end;
  25. var
  26. Form1: TForm1;
  27. implementation
  28. {$R *.lfm}
  29. { TForm1 }
  30. procedure TForm1.Exit1Click(Sender: TObject);
  31. begin
  32. end;
  33. procedure TForm1.FormCreate(Sender: TObject);
  34. begin
  35. //
  36. end;
  37. procedure TForm1.NewActiveBtnClick(Sender: TObject);
  38. begin
  39. TPartnerForm.Create(Application).CreatePartner(_Active);
  40. end;
  41. procedure TForm1.NewPassiveBtnClick(Sender: TObject);
  42. begin
  43. TPartnerForm.Create(Application).CreatePartner(_Passive);
  44. end;
  45. procedure TForm1.Timer1Timer(Sender: TObject);
  46. Var
  47. Count : integer;
  48. begin
  49. //Count:=Par_PartnersCount;
  50. // StatusBar.Panels[0].Text:='Partners : '+IntToStr(Count);
  51. end;
  52. end.