Changeset 51 for trunk/Forms/UFormOptions.pas
- Timestamp:
- Jul 26, 2012, 2:07:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormOptions.pas
r37 r51 40 40 41 41 uses 42 U FormMain, ULanguages;42 UCore, ULanguages; 43 43 44 44 { TOptionsForm } … … 46 46 procedure TOptionsForm.FormShow(Sender: TObject); 47 47 begin 48 MainForm.CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items);49 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject( MainForm.CoolTranslator1.Language);48 Core.CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items); 49 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.CoolTranslator1.Language); 50 50 if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0; 51 CheckBox1.Checked := MainForm.OpenProjectOnStart;51 CheckBox1.Checked := Core.OpenProjectOnStart; 52 52 end; 53 53 … … 55 55 begin 56 56 if ComboBoxLanguage.ItemIndex <> -1 then 57 MainForm.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]);58 MainForm.OpenProjectOnStart := CheckBox1.Checked;57 Core.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]); 58 Core.OpenProjectOnStart := CheckBox1.Checked; 59 59 end; 60 60
Note:
See TracChangeset
for help on using the changeset viewer.