Ignore:
Timestamp:
Jun 21, 2024, 12:44:53 PM (2 weeks 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/FormServer.pas

    r316 r317  
    1 unit UFormServer;
     1unit FormServer;
    22
    33interface
     
    55uses
    66  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    7   Spin, UServerList;
     7  Spin, ServerList, FormEx;
    88
    99type
     
    1111  { TFormServer }
    1212
    13   TFormServer = class(TForm)
     13  TFormServer = class(TFormEx)
    1414    ButtonCancel: TButton;
    1515    ButtonOk: TButton;
     
    2121    SpinEdit1: TSpinEdit;
    2222    procedure ButtonOkClick(Sender: TObject);
    23     procedure FormShow(Sender: TObject);
    2423  private
    2524    FServerInfo: TServerInfo;
     
    3130  end;
    3231
    33 var
    34   FormServer: TFormServer;
    35 
    3632
    3733implementation
     
    3935{$R *.lfm}
    4036
    41 uses
    42   UCore;
    43 
    4437{ TFormServer }
    45 
    46 procedure TFormServer.FormShow(Sender: TObject);
    47 begin
    48   Core.ThemeManager1.UseTheme(Self);
    49 end;
    5038
    5139procedure TFormServer.ButtonOkClick(Sender: TObject);
Note: See TracChangeset for help on using the changeset viewer.