Ignore:
Timestamp:
Jul 26, 2012, 2:07:15 PM (12 years ago)
Author:
chronos
Message:
  • Modified: Non visual related code moved to data module Core in UCore unit.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormOptions.pas

    r37 r51  
    4040
    4141uses
    42   UFormMain, ULanguages;
     42  UCore, ULanguages;
    4343
    4444{ TOptionsForm }
     
    4646procedure TOptionsForm.FormShow(Sender: TObject);
    4747begin
    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);
    5050  if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0;
    51   CheckBox1.Checked := MainForm.OpenProjectOnStart;
     51  CheckBox1.Checked := Core.OpenProjectOnStart;
    5252end;
    5353
     
    5555begin
    5656  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;
    5959end;
    6060
Note: See TracChangeset for help on using the changeset viewer.