Ignore:
Timestamp:
Jan 20, 2025, 11:38:55 AM (42 hours ago)
Author:
chronos
Message:
  • Modified: Do not reference global Core object if possible.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormImportFormats.pas

    r219 r227  
    3636      Selected: Boolean);
    3737  public
     38    AcronymDb: TAcronymDb;
    3839    ImportFormats: TImportFormats;
    3940    procedure UpdateList;
     
    4748
    4849uses
    49   Core, FormImportFormat;
     50  FormImportFormat;
    5051
    5152resourcestring
     
    9899begin
    99100  UpdateList;
    100   Core.Core.ScaleDPI1.ScaleControl(ToolBar1, Core.Core.ScaleDPI1.DesignDPI);
     101  ScaleDPI.ScaleControl(ToolBar1, ScaleDPI.DesignDPI);
    101102end;
    102103
     
    116117        ImportFormats.Add(NewImportFormat);
    117118        NewImportFormat := nil;
    118         Core.Core.AcronymDb.Modified := True;
     119        AcronymDb.Modified := True;
    119120        UpdateList;
    120121      end else ShowMessage(Format(SImportFormatAlreadyExists, [NewImportFormat.Name]));
     
    142143          if not Assigned(ImportFormats.SearchByName(NewImportFormat.Name)) then begin;
    143144            TImportFormat(ListView1.Selected.Data).Assign(NewImportFormat);
    144             Core.Core.AcronymDb.Modified := True;
     145            AcronymDb.Modified := True;
    145146            UpdateList;
    146147          end else ShowMessage(Format(SImportFormatAlreadyExists, [NewImportFormat.Name]));
    147148        end else begin
    148149          TImportFormat(ListView1.Selected.Data).Assign(NewImportFormat);
    149           Core.Core.AcronymDb.Modified := True;
     150          AcronymDb.Modified := True;
    150151          UpdateList;
    151152        end;
Note: See TracChangeset for help on using the changeset viewer.