private void InputLanguageComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { var comboBox = sender as ComboBox; if (comboBox.SelectedItem == null) { return; } languageManager.UpdateInputLanguage(comboBox.SelectedItem as string); }