Ignore:
Timestamp:
Aug 8, 2016, 1:41:25 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Non-visual code moved from FormMain to Core data module.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormImportSource.pas

    r84 r86  
    6161
    6262uses
    63   UFormMain, UFormImportFormat, UFormCategorySelect;
     63  UCore, UFormImportFormat, UFormCategorySelect;
    6464
    6565{ TFormImportSource }
     
    7676      FormImportFormat.Save(NewImportFormat);
    7777      TImportFormat(ComboBox1.Items.Objects[ComboBox1.ItemIndex]).Assign(NewImportFormat);
    78       FormMain.AcronymDb.Modified := True;
     78      Core.AcronymDb.Modified := True;
    7979      ComboBox1.Items.Strings[ComboBox1.ItemIndex] := NewImportFormat.Name;
    8080    end;
     
    130130  EditName.Text := ImportSource.Name;
    131131  EditURL.Text := ImportSource.URL;
    132   while ComboBox1.Items.Count > FormMain.AcronymDb.ImportFormats.Count do
     132  while ComboBox1.Items.Count > Core.AcronymDb.ImportFormats.Count do
    133133    ComboBox1.Items.Delete(ComboBox1.Items.Count - 1);
    134   while ComboBox1.Items.Count < FormMain.AcronymDb.ImportFormats.Count do
     134  while ComboBox1.Items.Count < Core.AcronymDb.ImportFormats.Count do
    135135    ComboBox1.Items.Add('');
    136   for I := 0 to FormMain.AcronymDb.ImportFormats.Count - 1 do begin
    137     ComboBox1.Items[I] := TImportFormat(FormMain.AcronymDb.ImportFormats[I]).Name;
    138     ComboBox1.Items.Objects[I] := FormMain.AcronymDb.ImportFormats[I];
     136  for I := 0 to Core.AcronymDb.ImportFormats.Count - 1 do begin
     137    ComboBox1.Items[I] := TImportFormat(Core.AcronymDb.ImportFormats[I]).Name;
     138    ComboBox1.Items.Objects[I] := Core.AcronymDb.ImportFormats[I];
    139139  end;
    140140  ComboBox1.ItemIndex := ComboBox1.Items.IndexOfObject(ImportSource.Format);
Note: See TracChangeset for help on using the changeset viewer.