Ignore:
Timestamp:
Jun 9, 2011, 1:04:45 PM (13 years ago)
Author:
george
Message:
  • Fixed: Display edit controls according property type.
  • Added: Interface language translation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UMainForm.pas

    r11 r12  
    121121
    122122uses
    123   UItemView, UItemEdit, UItemAdd, ULoginForm, USettingForm, UApplicationInfo;
     123  UItemView, UItemEdit, UItemAdd, ULoginForm, USettingForm, UApplicationInfo,
     124  UCore;
    124125
    125126{$R *.lfm}
     
    138139    System.Database.UserName := ReadStringWithDefault('DatabaseUserName', 'chronis');
    139140    System.Database.Password := ReadStringWithDefault('DatabasePassword', '');
    140   finally
     141    with Core.CoolTranslator1 do
     142      Language := Languages.SearchByCode(ReadStringWithDefault('LanguageCode', ''));
     143 finally
    141144    Free;
    142145  end;
     
    154157    WriteString('DatabaseUserName', System.Database.UserName);
    155158    WriteString('DatabasePassword', System.Database.Password);
     159    with Core.CoolTranslator1 do
     160      WriteString('LanguageCode', Language.Code);
    156161  finally
    157162    Free;
     
    434439  System.Database.Connect;
    435440  InitStructure;
     441  System.LoadTypes;
    436442  LoadTree;
    437443end;
Note: See TracChangeset for help on using the changeset viewer.