IdAbout.pas 819 B

12345678910111213141516171819202122232425262728293031323334353637
  1. unit IdAbout;
  2. interface
  3. {$I IdCompilerDefines.inc}
  4. uses
  5. {$IFDEF DOTNET}
  6. IdAboutDotNET;
  7. {$ELSE}
  8. IdAboutVCL;
  9. {$ENDIF}
  10. //we have a procedure for providing a product name and version in case
  11. //we ever want to make another product.
  12. procedure ShowAboutBox(const AProductName, AProductName2, AProductVersion : String);
  13. procedure ShowDlg;
  14. implementation
  15. {$IFDEF DOTNET}
  16. //for some reason, the Winforms designer doesn't like this in the same unit
  17. //as the class it's for
  18. {$R 'IdAboutDotNET.TfrmAbout.resources' 'IdAboutDotNET.resx'}
  19. {$ENDIF}
  20. procedure ShowAboutBox(const AProductName, AProductName2, AProductVersion : String);
  21. begin
  22. TfrmAbout.ShowAboutBox(AProductName, AProductName2, AProductVersion);
  23. end;
  24. procedure ShowDlg;
  25. begin
  26. TfrmAbout.ShowDlg;
  27. end;
  28. end.