Changeset 86 for trunk/Forms/UFormImport.pas
- Timestamp:
- Aug 8, 2016, 1:41:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormImport.pas
r23 r86 37 37 38 38 uses 39 U FormMain;39 UCore; 40 40 41 41 resourcestring … … 79 79 AcronymMeaning := Trim(Copy(Line, 2, Length(Line))); 80 80 if (AcronymName <> '') and (AcronymMeaning <> '') then begin 81 Acronym := FormMain.AcronymDb.Acronyms.SearchByName(AcronymName);81 Acronym := Core.AcronymDb.Acronyms.SearchByName(AcronymName); 82 82 if not Assigned(Acronym) then begin 83 83 Acronym := TAcronym.Create; 84 84 Acronym.Name := AcronymName; 85 FormMain.AcronymDb.Acronyms.Add(Acronym);85 Core.AcronymDb.Acronyms.Add(Acronym); 86 86 end; 87 87 Meaning := Acronym.Meanings.SearchByName(AcronymMeaning); … … 96 96 end; 97 97 end; 98 if AddedCount > 0 then FormMain.AcronymDb.Modified := True;98 if AddedCount > 0 then Core.AcronymDb.Modified := True; 99 99 ShowMessage(Format(SImportedNewAcronyms, [AddedCount])); 100 100 end; … … 125 125 else AcronymDescription := ''; 126 126 if (AcronymName <> '') and (AcronymDescription <> '') then begin 127 Acronym := FormMain.AcronymDb.Acronyms.SearchByName(AcronymName);127 Acronym := Core.AcronymDb.Acronyms.SearchByName(AcronymName); 128 128 if not Assigned(Acronym) then begin 129 129 Acronym := TAcronym.Create; 130 130 Acronym.Name := AcronymName; 131 FormMain.AcronymDb.Acronyms.Add(Acronym);131 Core.AcronymDb.Acronyms.Add(Acronym); 132 132 end; 133 133 Meaning := Acronym.Meanings.SearchByName(AcronymDescription); … … 143 143 end; 144 144 Columns.Free; 145 if AddedCount > 0 then FormMain.AcronymDb.Modified := True;145 if AddedCount > 0 then Core.AcronymDb.Modified := True; 146 146 ShowMessage(Format(SImportedNewAcronyms, [AddedCount])); 147 147 end;
Note:
See TracChangeset
for help on using the changeset viewer.