示例#1
0
 private void langCombo_MouseEnter(object sender, EventArgs e)
 {
     if (langCombo.Items.Count == 0)
     {
         var cldrMain = new CldrLang(UiLang, cldrFullPath.Text);
         langCombo.Items.AddRange(cldrMain.NameWithCode());
     }
 }
示例#2
0
        private void langCombo_SelectedIndexChanged(object sender, EventArgs e)
        {
            var cldrMain = new CldrLang(UiLang, cldrFullPath.Text);
            var code     = GetCode();

            countryCombo.Items.AddRange(cldrMain.Countries(code));
            countryCombo.SelectedIndex = 0;
            keyboardCombo.Items.AddRange(cldrMain.Keyboards(code));
            keyboardCombo.SelectedIndex = 0;
        }