7 partial class ConfigurationControl
13 private void InitLanguageValues()
15 string[] allowedLanguages = {
"English",
"Deutsch" };
19 foreach (
string language
in allowedLanguages)
21 this.comboBoxLanguage.Items.Add(language);
23 if (this.configuration.Language.ToString() == language)
24 this.comboBoxLanguage.SelectedIndex = i;
28 this.comboBoxLanguage.SelectedIndexChanged += this.comboBoxLanguage_SelectedIndexChanged;
38 private void comboBoxLanguage_SelectedIndexChanged(
object sender, EventArgs e)
40 this.configuration.Language =
EnumHelper.ParseEnum<
Language>(this.comboBoxLanguage.Text);