Changeset 12 for trunk/Forms/UMainForm.pas
- Timestamp:
- Jun 9, 2011, 1:04:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UMainForm.pas
r11 r12 121 121 122 122 uses 123 UItemView, UItemEdit, UItemAdd, ULoginForm, USettingForm, UApplicationInfo; 123 UItemView, UItemEdit, UItemAdd, ULoginForm, USettingForm, UApplicationInfo, 124 UCore; 124 125 125 126 {$R *.lfm} … … 138 139 System.Database.UserName := ReadStringWithDefault('DatabaseUserName', 'chronis'); 139 140 System.Database.Password := ReadStringWithDefault('DatabasePassword', ''); 140 finally 141 with Core.CoolTranslator1 do 142 Language := Languages.SearchByCode(ReadStringWithDefault('LanguageCode', '')); 143 finally 141 144 Free; 142 145 end; … … 154 157 WriteString('DatabaseUserName', System.Database.UserName); 155 158 WriteString('DatabasePassword', System.Database.Password); 159 with Core.CoolTranslator1 do 160 WriteString('LanguageCode', Language.Code); 156 161 finally 157 162 Free; … … 434 439 System.Database.Connect; 435 440 InitStructure; 441 System.LoadTypes; 436 442 LoadTree; 437 443 end;
Note:
See TracChangeset
for help on using the changeset viewer.