private void sp_PreviewMouseDown(object sender, MouseButtonEventArgs e) { StackPanel sp = (StackPanel)sender; if (sp.Tag != null) { OneLanguage lang = (OneLanguage)sp.Tag; //LanguagesManager lm = new LanguagesManager(); languagesManager.ChangeOneLanguage(lang); } else { Properties.Settings.Default.LanguageSelectorVisible = false; } }
/// <summary> /// Получаем или задаём язык приложения /// </summary> /// <param name="lang"></param> private void ChangeLanguage(OneLanguage lang) { LanguagesManager lm = new LanguagesManager(); lm.ChangeOneLanguage(lang); }