Changeset 115 for trunk/UCore.pas
- Timestamp:
- Feb 15, 2022, 3:46:22 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r103 r115 17 17 AAbout: TAction; 18 18 AboutDialog1: TAboutDialog; 19 AViewSource: TAction; 19 20 ATest: TAction; 20 21 AFind: TAction; … … 59 60 procedure ASettingsExecute(Sender: TObject); 60 61 procedure ATestExecute(Sender: TObject); 62 procedure AViewSourceExecute(Sender: TObject); 61 63 procedure DataModuleCreate(Sender: TObject); 62 64 procedure DataModuleDestroy(Sender: TObject); … … 106 108 uses 107 109 UFormMain, UFormSettings, UContact, UFormContacts, UFormFindDuplicity, 108 UFormGenerate, UFormError, UFormFind, UFormTest ;110 UFormGenerate, UFormError, UFormFind, UFormTest, UFormSource; 109 111 110 112 resourcestring … … 274 276 try 275 277 ShowModal; 278 finally 279 Free; 280 end; 281 end; 282 283 procedure TCore.AViewSourceExecute(Sender: TObject); 284 begin 285 with TFormSource.Create(nil) do 286 try 287 Source := TContactsFile(DataFile).AsString; 288 if ShowModal = mrOk then begin 289 TContactsFile(DataFile).AsString := Source; 290 UpdateFile; 291 end; 276 292 finally 277 293 Free;
Note:
See TracChangeset
for help on using the changeset viewer.