Ignore:
Timestamp:
Jun 21, 2024, 12:44:53 PM (5 months ago)
Author:
chronos
Message:
  • Modified: Remove U prefix from unit names.
  • Modified: Use TFormEx for all forms for code simplification.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormGameSystems.pas

    r316 r317  
    1 unit UFormGameSystems;
     1unit FormGameSystems;
    22
    33interface
     
    55uses
    66  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls,
    7   ActnList, Menus, UGameSystem;
     7  ActnList, Menus, GameSystem, FormEx;
    88
    99type
     
    1111  { TFormGameSystems }
    1212
    13   TFormGameSystems = class(TForm)
     13  TFormGameSystems = class(TFormEx)
    1414    AAdd: TAction;
    1515    ASelectAll: TAction;
     
    3434    procedure ARemoveExecute(Sender: TObject);
    3535    procedure ASelectAllExecute(Sender: TObject);
    36     procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    3736    procedure FormCreate(Sender: TObject);
    3837    procedure FormDestroy(Sender: TObject);
     
    5150  end;
    5251
    53 var
    54   FormGameSystems: TFormGameSystems;
    55 
    5652
    5753implementation
     
    6056
    6157uses
    62   UCore, UFormGameSystem;
     58  FormGameSystem;
    6359
    6460resourcestring
     
    9086var
    9187  TempEntry: TGameSystem;
     88  FormGameSystem: TFormGameSystem;
    9289begin
    9390  if Assigned(ListView1.Selected) then
     
    114111var
    115112  TempEntry: TGameSystem;
     113  FormGameSystem: TFormGameSystem;
    116114begin
    117115  TempEntry := TGameSystem.Create;
     
    141139end;
    142140
    143 procedure TFormGameSystems.FormClose(Sender: TObject;
    144   var CloseAction: TCloseAction);
    145 begin
    146   Core.PersistentForm.Save(Self);
    147 end;
    148 
    149141procedure TFormGameSystems.FormCreate(Sender: TObject);
    150142var
    151143  I: Integer;
    152144begin
    153   Core.CoolTranslator1.TranslateComponentRecursive(Self);
    154   Core.ThemeManager1.UseTheme(Self);
    155145  for I := 0 to ToolBar1.ButtonCount - 1 do
    156146    ToolBar1.Buttons[I].Hint := ToolBar1.Buttons[I].Caption;
     
    164154procedure TFormGameSystems.FormShow(Sender: TObject);
    165155begin
    166   Core.PersistentForm.Load(Self);
    167156  UpdateList;
    168157  UpdateInterface;
Note: See TracChangeset for help on using the changeset viewer.