- Timestamp:
- Apr 20, 2016, 6:29:54 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:ignore
set to
lib
AcronymDecoder.exe
AcronymDecoder.lps
-
Property svn:ignore
set to
-
trunk/Packages/synapse
-
Property svn:ignore
set to
lib
-
Property svn:ignore
set to
-
trunk/UFormImport.lfm
r1 r2 13 13 Top = 8 14 14 Width = 107 15 Caption = ' Import'15 Caption = 'Process' 16 16 OnClick = ButtonImportClick 17 17 TabOrder = 0 -
trunk/UFormImport.pas
r1 r2 68 68 Line := Trim(Memo1.Lines[I]); 69 69 if Copy(Line, 1, 1) = ';' then begin 70 AcronymName := Trim(Copy(Line, 2, Length(Line))); 70 if Pos(':', Line) > 0 then begin 71 AcronymName := Trim(Copy(Line, 2, Pos(':', Line) - 2)); 72 Line := Copy(Line, Pos(':', Line), Length(Line)); 73 end else AcronymName := Trim(Copy(Line, 2, Length(Line))); 71 74 end; 72 75 if Copy(Line, 1, 1) = ':' then begin -
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.