frmMain.pas 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. unit frmMain;
  2. interface
  3. uses
  4. System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
  5. FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
  6. Quick.Commons, Quick.SysInfo, FMX.StdCtrls, FMX.Controls.Presentation, FMX.Layouts;
  7. type
  8. TMainForm = class(TForm)
  9. Layout1: TLayout;
  10. Layout2: TLayout;
  11. Label2: TLabel;
  12. lblDeviceName: TLabel;
  13. Layout3: TLayout;
  14. Label3: TLabel;
  15. lblAppPath: TLabel;
  16. Layout4: TLayout;
  17. Label5: TLabel;
  18. lblOS: TLabel;
  19. Layout5: TLayout;
  20. Label7: TLabel;
  21. lblAppName: TLabel;
  22. Layout6: TLayout;
  23. Label4: TLabel;
  24. lblAppVersion: TLabel;
  25. procedure FormCreate(Sender: TObject);
  26. private
  27. { Private declarations }
  28. public
  29. { Public declarations }
  30. end;
  31. var
  32. MainForm: TMainForm;
  33. implementation
  34. {$R *.fmx}
  35. procedure TMainForm.FormCreate(Sender: TObject);
  36. begin
  37. lblDeviceName.Text := SystemInfo.HostName;
  38. lblOS.Text := SystemInfo.OsVersion;
  39. lblAppPath.Text := SystemInfo.AppPath;
  40. lblAppName.Text := SystemInfo.AppName;
  41. lblAppVersion.Text := SystemInfo.AppVersion;
  42. end;
  43. end.