コード例 #1
0
        private void LanguageSelect_Load(object sender, EventArgs e)
        {
            Language[] items    = Language.GetAvailableLanguages();
            Language   selected = null;

            foreach (Language item in items)
            {
                langCombo.Items.Add(item);
                if (item.Url == Properties.Settings.Default.LanguageUrl || (item.Code == "ZZZZ" && Properties.Settings.Default.LanguageCode == "ZZZZ"))
                {
                    selected = item;
                }
            }
            langCombo.SelectedItem = selected;
        }