Changeset 2 for trunk/UFormMain.pas
- Timestamp:
- Apr 20, 2016, 6:29:54 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:ignore
set to
lib
AcronymDecoder.exe
AcronymDecoder.lps
-
Property svn:ignore
set to
-
trunk/UFormMain.pas
r1 r2 53 53 UFormImport; 54 54 55 const 56 DefaultFileName = 'Acronyms.csv'; 57 55 58 { TFormMain } 56 59 … … 69 72 procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction); 70 73 begin 71 AcronymDB.SaveToFile( 'Abbreviations.txt');74 AcronymDB.SaveToFile(DefaultFileName); 72 75 end; 73 76 … … 101 104 procedure TFormMain.FormShow(Sender: TObject); 102 105 begin 103 AcronymDB.LoadFromFile('Abbreviations.txt'); 106 if FileExists(DefaultFileName) then 107 AcronymDB.LoadFromFile(DefaultFileName); 104 108 AcronymDb.FilterList(EditSearch.Text, FoundAcronyms); 105 109 UpdateAcronymsList;
Note:
See TracChangeset
for help on using the changeset viewer.