Changeset 227 for trunk/Forms/FormImportSource.pas
- Timestamp:
- Jan 20, 2025, 11:38:55 AM (42 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormImportSource.pas
r221 r227 44 44 procedure FormShow(Sender: TObject); 45 45 public 46 AcronymDb: TAcronymDb; 46 47 procedure UpdateInterface; 47 48 procedure Load(ImportSource: TImportSource); … … 55 56 56 57 uses 57 Core,FormImportFormat, FormCategorySelect;58 FormImportFormat, FormCategorySelect; 58 59 59 60 { TFormImportSource } … … 73 74 FormImportFormat.Save(NewImportFormat); 74 75 TImportFormat(ComboBox1.Items.Objects[ComboBox1.ItemIndex]).Assign(NewImportFormat); 75 Core.Core.AcronymDb.Modified := True;76 AcronymDb.Modified := True; 76 77 ComboBox1.Items.Strings[ComboBox1.ItemIndex] := NewImportFormat.Name; 77 78 end; … … 100 101 FormCategorySelect := TFormCategorySelect.Create(Self); 101 102 try 103 FormCategorySelect.AcronymDb := AcronymDb; 102 104 FormCategorySelect.Load(ListBox1.Items); 103 105 if FormCategorySelect.ShowModal = mrOk then begin … … 136 138 EditName.Text := ImportSource.Name; 137 139 EditURL.Text := ImportSource.URL; 138 while ComboBox1.Items.Count > Core.Core.AcronymDb.ImportFormats.Count do140 while ComboBox1.Items.Count > AcronymDb.ImportFormats.Count do 139 141 ComboBox1.Items.Delete(ComboBox1.Items.Count - 1); 140 while ComboBox1.Items.Count < Core.Core.AcronymDb.ImportFormats.Count do142 while ComboBox1.Items.Count < AcronymDb.ImportFormats.Count do 141 143 ComboBox1.Items.Add(''); 142 for I := 0 to Core.Core.AcronymDb.ImportFormats.Count - 1 do begin143 ComboBox1.Items[I] := TImportFormat( Core.Core.AcronymDb.ImportFormats[I]).Name;144 ComboBox1.Items.Objects[I] := Core.Core.AcronymDb.ImportFormats[I];144 for I := 0 to AcronymDb.ImportFormats.Count - 1 do begin 145 ComboBox1.Items[I] := TImportFormat(AcronymDb.ImportFormats[I]).Name; 146 ComboBox1.Items.Objects[I] := AcronymDb.ImportFormats[I]; 145 147 end; 146 148 ComboBox1.ItemIndex := ComboBox1.Items.IndexOfObject(ImportSource.Format);
Note:
See TracChangeset
for help on using the changeset viewer.