Changeset 86 for trunk/Forms/UFormImportSource.pas
- Timestamp:
- Aug 8, 2016, 1:41:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormImportSource.pas
r84 r86 61 61 62 62 uses 63 U FormMain, UFormImportFormat, UFormCategorySelect;63 UCore, UFormImportFormat, UFormCategorySelect; 64 64 65 65 { TFormImportSource } … … 76 76 FormImportFormat.Save(NewImportFormat); 77 77 TImportFormat(ComboBox1.Items.Objects[ComboBox1.ItemIndex]).Assign(NewImportFormat); 78 FormMain.AcronymDb.Modified := True;78 Core.AcronymDb.Modified := True; 79 79 ComboBox1.Items.Strings[ComboBox1.ItemIndex] := NewImportFormat.Name; 80 80 end; … … 130 130 EditName.Text := ImportSource.Name; 131 131 EditURL.Text := ImportSource.URL; 132 while ComboBox1.Items.Count > FormMain.AcronymDb.ImportFormats.Count do132 while ComboBox1.Items.Count > Core.AcronymDb.ImportFormats.Count do 133 133 ComboBox1.Items.Delete(ComboBox1.Items.Count - 1); 134 while ComboBox1.Items.Count < FormMain.AcronymDb.ImportFormats.Count do134 while ComboBox1.Items.Count < Core.AcronymDb.ImportFormats.Count do 135 135 ComboBox1.Items.Add(''); 136 for I := 0 to FormMain.AcronymDb.ImportFormats.Count - 1 do begin137 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]; 139 139 end; 140 140 ComboBox1.ItemIndex := ComboBox1.Items.IndexOfObject(ImportSource.Format);
Note:
See TracChangeset
for help on using the changeset viewer.