コード例 #1
0
        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;
            }
        }
コード例 #2
0
        /// <summary>
        /// Получаем или задаём язык приложения
        /// </summary>
        /// <param name="lang"></param>
        private void ChangeLanguage(OneLanguage lang)
        {
            LanguagesManager lm = new LanguagesManager();

            lm.ChangeOneLanguage(lang);
        }