Changeset 28 for trunk/Forms/UFormImportSource.pas
- Timestamp:
- Jul 12, 2016, 4:28:22 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormImportSource.pas
r22 r28 14 14 15 15 TFormImportSource = class(TForm) 16 ButtonShowFormat: TButton; 16 17 ButtonOk: TButton; 17 18 ButtonCancel: TButton; … … 22 23 Label2: TLabel; 23 24 Label3: TLabel; 25 procedure ButtonShowFormatClick(Sender: TObject); 24 26 private 25 27 { private declarations } … … 37 39 38 40 uses 39 UFormMain ;41 UFormMain, UFormImportFormat; 40 42 41 43 { TFormImportSource } 44 45 procedure TFormImportSource.ButtonShowFormatClick(Sender: TObject); 46 var 47 NewImportFormat: TImportFormat; 48 begin 49 if ComboBox1.ItemIndex <> -1 then begin 50 NewImportFormat := TImportFormat.Create; 51 NewImportFormat.Assign(TImportFormat(ComboBox1.Items.Objects[ComboBox1.ItemIndex])); 52 FormImportFormat.Load(NewImportFormat); 53 if FormImportFormat.ShowModal = mrOk then begin 54 FormImportFormat.Save(NewImportFormat); 55 TImportFormat(ComboBox1.Items.Objects[ComboBox1.ItemIndex]).Assign(NewImportFormat); 56 FormMain.AcronymDb.Modified := True; 57 ComboBox1.Items.Strings[ComboBox1.ItemIndex] := NewImportFormat.Name; 58 end; 59 if Assigned(NewImportFormat) then NewImportFormat.Free; 60 end; 61 end; 42 62 43 63 procedure TFormImportSource.Load(ImportSource: TImportSource);
Note:
See TracChangeset
for help on using the changeset viewer.