2
0

frmMain.pas 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. Layout7: TLayout;
  26. Label1: TLabel;
  27. lblUserName: TLabel;
  28. procedure FormCreate(Sender: TObject);
  29. private
  30. { Private declarations }
  31. public
  32. { Public declarations }
  33. end;
  34. var
  35. MainForm: TMainForm;
  36. implementation
  37. {$R *.fmx}
  38. procedure TMainForm.FormCreate(Sender: TObject);
  39. begin
  40. lblDeviceName.Text := SystemInfo.HostName;
  41. lblUserName.Text := SystemInfo.UserName;
  42. lblOS.Text := SystemInfo.OsVersion;
  43. lblAppPath.Text := SystemInfo.AppPath;
  44. lblAppName.Text := SystemInfo.AppName;
  45. lblAppVersion.Text := SystemInfo.AppVersion;
  46. end;
  47. end.