Ignore:
Timestamp:
Jan 17, 2025, 9:05:54 PM (4 days ago)
Author:
chronos
Message:
  • Modified: Updated Common package.
  • Modified: Remove U prefix from unit names.
  • Modified: Use Gneeric.Collections instead of fgl.
  • Modified: Do not use global form variables.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormImportFormat.pas

    r218 r219  
    1 unit UFormImportFormat;
    2 
    3 {$mode delphi}
     1unit FormImportFormat;
    42
    53interface
     
    75uses
    86  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    9   ComCtrls, Menus, ActnList, UAcronym;
     7  ComCtrls, Menus, ActnList, Acronym;
    108
    119type
     
    4341    procedure AMoveUpExecute(Sender: TObject);
    4442    procedure ARemoveExecute(Sender: TObject);
    45     procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    4643    procedure FormCreate(Sender: TObject);
    4744    procedure FormShow(Sender: TObject);
    4845    procedure ListViewItemRulesData(Sender: TObject; Item: TListItem);
    49   private
    50     { private declarations }
    5146  public
    5247    ImportFormat: TImportFormat;
     
    6459
    6560uses
    66   UCore, UFormImportPattern;
     61  Core, FormImportPattern;
    6762
    6863{$R *.lfm}
     
    8075var
    8176  NewImportPattern: TImportPattern;
     77  FormImportPattern: TFormImportPattern;
    8278begin
    8379  FormImportPattern := TFormImportPattern.Create(Self);
     
    10096var
    10197  NewImportPattern: TImportPattern;
     98  FormImportPattern: TFormImportPattern;
    10299begin
    103100  FormImportPattern := TFormImportPattern.Create(Self);
     
    152149end;
    153150
    154 procedure TFormImportFormat.FormClose(Sender: TObject;
    155   var CloseAction: TCloseAction);
    156 begin
    157   Core.PersistentForm1.Save(Self);
    158 end;
    159 
    160151procedure TFormImportFormat.FormCreate(Sender: TObject);
    161152begin
    162   Core.Translator.TranslateComponentRecursive(Self);
    163   Core.ThemeManager.UseTheme(Self);
    164153  YesNoString[False] := SNo;
    165154  YesNoString[True] := SYes;
     
    168157procedure TFormImportFormat.FormShow(Sender: TObject);
    169158begin
    170   Core.PersistentForm1.Load(Self);
    171159  ReloadList;
    172160end;
Note: See TracChangeset for help on using the changeset viewer.