Changeset 22 for trunk/UCore.pas


Ignore:
Timestamp:
Aug 19, 2021, 10:38:05 AM (3 years ago)
Author:
chronos
Message:
  • Modified: Updated Common package.
  • Removed: CoolTranslator is now part of Common package.
  • Modified: Replaced custom about dialog with the one from Common package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r21 r22  
    88  Classes, SysUtils, FileUtil, Controls, ActnList, Forms, Dialogs,
    99  ULastOpenedList, UApplicationInfo, UPersistentForm, UScaleDPI, UCommon,
    10   UCoolTranslator, UDataFile, Menus, URegistry, UTheme, Registry;
     10  UTranslator, UDataFile, Menus, URegistry, UTheme, UAboutDialog, Registry;
    1111
    1212type
     
    2626  TCore = class(TDataModule)
    2727    AAbout: TAction;
     28    AboutDialog1: TAboutDialog;
    2829    AGenerate: TAction;
    2930    AFindDuplicate: TAction;
     
    4041    ActionList1: TActionList;
    4142    ApplicationInfo1: TApplicationInfo;
    42     CoolTranslator1: TCoolTranslator;
     43    CoolTranslator1: TTranslator;
    4344    ImageList1: TImageList;
    4445    LastOpenedList1: TLastOpenedList;
     
    160161procedure TCore.AAboutExecute(Sender: TObject);
    161162begin
    162   FormAbout := TFormAbout.Create(nil);
    163   try
    164     FormAbout.ApplicationInfo := ApplicationInfo1;
    165     FormAbout.ShowModal;
    166   finally
    167     FormAbout.Free;
    168   end;
     163  AboutDialog1.Show;
    169164end;
    170165
Note: See TracChangeset for help on using the changeset viewer.