Ignore:
Timestamp:
Jun 5, 2024, 9:58:43 AM (5 months ago)
Author:
chronos
Message:
  • Modified: Use TFormEx class from Common package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormTargets.pas

    r145 r149  
    44
    55uses
    6   Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls;
     6  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls,
     7  FormEx;
    78
    89type
     
    1011  { TFormTargets }
    1112
    12   TFormTargets = class(TForm)
     13  TFormTargets = class(TFormEx)
    1314    ListView1: TListView;
    14     procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    15     procedure FormCreate(Sender: TObject);
    1615    procedure FormShow(Sender: TObject);
    1716    procedure ListView1Data(Sender: TObject; Item: TListItem);
     
    3433procedure TFormTargets.FormShow(Sender: TObject);
    3534begin
    36   Core.Core.PersistentForm1.Load(Self);
    3735  ReloadList;
    38 end;
    39 
    40 procedure TFormTargets.FormCreate(Sender: TObject);
    41 begin
    42   Core.Core.Translator.TranslateComponentRecursive(Self);
    43   Core.Core.ThemeManager.UseTheme(Self);
    44 end;
    45 
    46 procedure TFormTargets.FormClose(Sender: TObject; var CloseAction: TCloseAction
    47   );
    48 begin
    49   Core.Core.PersistentForm1.Save(Self);
    5036end;
    5137
Note: See TracChangeset for help on using the changeset viewer.