Changeset 17 for trunk/UCore.pas
- Timestamp:
- Feb 28, 2018, 12:56:11 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r16 r17 26 26 TCore = class(TDataModule) 27 27 AAbout: TAction; 28 AGenerate: TAction; 28 29 AFindDuplicate: TAction; 29 30 AFileMerge: TAction; … … 57 58 procedure AFileCloseExecute(Sender: TObject); 58 59 procedure AFindDuplicateExecute(Sender: TObject); 60 procedure AGenerateExecute(Sender: TObject); 59 61 procedure AHomePageExecute(Sender: TObject); 60 62 procedure ASettingsExecute(Sender: TObject); … … 93 95 94 96 uses 95 UFormMain, UFormAbout, UFormSettings, UContact, UFormContacts, UFormFindDuplicity; 97 UFormMain, UFormAbout, UFormSettings, UContact, UFormContacts, UFormFindDuplicity, 98 UFormGenerate; 96 99 97 100 resourcestring … … 178 181 Contacts := TContactsFile(DataFile).Contacts; 179 182 ShowModal; 183 Free; 184 end; 185 end; 186 187 procedure TCore.AGenerateExecute(Sender: TObject); 188 begin 189 FormGenerate := TFormGenerate.Create(nil); 190 with FormGenerate do begin 191 Contacts := TContactsFile(DataFile).Contacts; 192 ShowModal; 193 FormContacts.ReloadList; 194 FormContacts.UpdateInterface; 195 DataFile.Modified := True; 196 FormMain.UpdateInterface; 180 197 Free; 181 198 end;
Note:
See TracChangeset
for help on using the changeset viewer.