示例#1
0
 public DlgLanguage(LanguageInfo language)
 {
     //
     // Required for Windows Form Designer support
     //
     InitializeComponent();
     m_language = language;
     LanguageName = language.LanguageName;
     NTInfo = language.NTInfo;
     LexInfo = language.LexInfo;
     GlossInfo = language.GlossInfo;
     cbRTL.Checked = language.UseRTL;
     tbSepChar.Text = language.DecompChar;
 }
示例#2
0
        private void InitLanguageInfo()
        {
            MyFontInfo nt = new MyFontInfo(new Font("Times New Roman", 14.0f), Color.Black);
            MyFontInfo lex = new MyFontInfo(new Font("Courier New", 12.0f), Color.Blue);
            MyFontInfo gloss = new MyFontInfo(new Font("Times New Roman", 12.0f), Color.Green);
            m_language = new LanguageInfo("Default Language", nt, lex, gloss, false, "-");

            RetrieveRegistryInfo();
        }