Changeset 168 for trunk/Forms/FormImport.pas
- Timestamp:
- Jul 1, 2023, 8:17:50 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormImport.pas
r167 r168 27 27 procedure ButtonImportClick(Sender: TObject); 28 28 procedure ComboBoxInputFormatChange(Sender: TObject); 29 procedure EditInputFileChange(Sender: TObject); 29 30 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 30 31 procedure FormCreate(Sender: TObject); … … 47 48 48 49 uses 49 Core, Common, RegistryEx, VCardFile ;50 Core, Common, RegistryEx, VCardFile, VCard; 50 51 51 52 { TFormImport } … … 61 62 begin 62 63 TableFormat := TTableFormat(ComboBoxInputFormat.Items.Objects[ComboBoxInputFormat.ItemIndex]); 63 T able.SetInput(TableFormat, LoadFileToStr(EditInputFile.Text));64 Table.Title := ExtractFileNameWithoutExt(EditInputFile.Text);64 TVCardFile(Core.Core.DataFile).VCard.ImportFromFile(EditInputFile.Text, TableFormat, 65 CheckBoxHumanReadableHeader.Checked); 65 66 end; 66 67 … … 68 69 begin 69 70 UpdateTableFormat; 71 end; 72 73 procedure TFormImport.EditInputFileChange(Sender: TObject); 74 begin 75 RedrawPending := True; 70 76 end; 71 77
Note:
See TracChangeset
for help on using the changeset viewer.