GetAvailableLanguages() public static method

Call this method to obtain available languages. Used by Settings GUI.
public static GetAvailableLanguages ( ) : string>.Dictionary
return string>.Dictionary
コード例 #1
0
        public Form_ChooseLanguage()
        {
            InitializeComponent();

            // Add language selections list
            Dictionary <LanguageType, string> lang = International.GetAvailableLanguages();

            comboBox_Languages.Items.Clear();
            for (int i = 0; i < lang.Count; i++)
            {
                comboBox_Languages.Items.Add(lang[(LanguageType)i]);
            }

            comboBox_Languages.SelectedIndex = 0;

            label_Instruction.Location  = new Point((this.Width - label_Instruction.Size.Width) / 2, label_Instruction.Location.Y);
            button_OK.Location          = new Point((this.Width - button_OK.Size.Width) / 2, button_OK.Location.Y);
            comboBox_Languages.Location = new Point((this.Width - comboBox_Languages.Size.Width) / 2, comboBox_Languages.Location.Y);
        }