Changeset 90 for trunk/Forms/UFormImport.pas
- Timestamp:
- Aug 10, 2016, 11:24:45 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormImport.pas
r86 r90 15 15 TFormImport = class(TForm) 16 16 ButtonLoadFromFile: TButton; 17 Button Import: TButton;17 ButtonProcess: TButton; 18 18 ComboBoxDataFormat: TComboBox; 19 19 Label1: TLabel; 20 20 Memo1: TMemo; 21 21 OpenDialog1: TOpenDialog; 22 procedure Button ImportClick(Sender: TObject);22 procedure ButtonProcessClick(Sender: TObject); 23 23 procedure ButtonLoadFromFileClick(Sender: TObject); 24 24 private … … 45 45 { TFormImport } 46 46 47 procedure TFormImport.Button ImportClick(Sender: TObject);47 procedure TFormImport.ButtonProcessClick(Sender: TObject); 48 48 begin 49 49 if ComboBoxDataFormat.ItemIndex = 0 then ImportCSV; … … 53 53 procedure TFormImport.ButtonLoadFromFileClick(Sender: TObject); 54 54 begin 55 if ComboBoxDataFormat.ItemIndex = 0 then OpenDialog1.DefaultExt := '.csv'; 56 if ComboBoxDataFormat.ItemIndex = 1 then OpenDialog1.DefaultExt := '.txt'; 55 57 if OpenDialog1.Execute then 56 58 Memo1.Lines.LoadFromFile(OpenDialog1.FileName);
Note:
See TracChangeset
for help on using the changeset viewer.