public ChangesPanel() { InitializeComponent(); comboLanguage.SelectedIndex = 0; switch (th.GetSelectedLanguage()) { case "default": comboLanguage.SelectedIndex = 1; break; case "de": comboLanguage.SelectedIndex = 2; break; case "es": comboLanguage.SelectedIndex = 3; break; case "ca": comboLanguage.SelectedIndex = 4; break; case "zh": comboLanguage.SelectedIndex = 5; break; } th.Translate(this); comboBoxAttackers.DataSource = new[] { th.TS("Random"), th.TS("Best CP"), th.TS("Favourites"), th.TS("Lower than defenders CP") }; comboBoxAttackers.SelectedIndex = 0; }
public ChangesPanel() { InitializeComponent(); comboLanguage.SelectedIndex = 0; switch (th.GetSelectedLanguage()) { case "default": comboLanguage.SelectedIndex = 1; break; case "de": comboLanguage.SelectedIndex = 2; break; case "es": comboLanguage.SelectedIndex = 3; break; case "ca": comboLanguage.SelectedIndex = 4; break; } th.Translate(this); }