Changeset 39 for trunk/Forms/UFormImportSources.pas
- Timestamp:
- Jul 13, 2016, 4:42:12 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormImportSources.pas
r33 r39 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 9 ActnList, Menus, UAcronym ;9 ActnList, Menus, UAcronym, UJobProgressView; 10 10 11 11 type … … 19 19 AModify: TAction; 20 20 ARemove: TAction; 21 JobProgressView1: TJobProgressView; 21 22 ListView1: TListView; 22 23 MenuItem1: TMenuItem; … … 35 36 Selected: Boolean); 36 37 private 38 procedure ProcessImportJob(Job: TJob); 37 39 { private declarations } 38 40 public … … 150 152 begin 151 153 if Assigned(ListView1.Selected) then begin 152 TImportSource(ListView1.Selected.Data).Process; 154 JobProgressView1.AddJob('Process selected import source', ProcessImportJob); 155 JobProgressView1.Start; 153 156 ShowMessage(Format(SAddedCount, [TImportSource(ListView1.Selected.Data).ItemCount])); 154 157 end; 158 end; 159 160 procedure TFormImportSources.ProcessImportJob(Job: TJob); 161 begin 162 TImportSource(ListView1.Selected.Data).Process; 155 163 end; 156 164
Note:
See TracChangeset
for help on using the changeset viewer.