/// <summary>
        /// Selects this language and deselects the previously selected language.
        /// </summary>
        public void Select()
        {
            if (selectedEntry != this)
            {
                if (selectedEntry != null)
                {
                    selectedEntry.IsSelected = false;
                }
                selectedEntry   = this;
                this.IsSelected = true;

                App.Instance.SelectCulture(culture);
                App.Instance.Settings.SelectedLanguage = LanguageCode;
                App.Instance.Settings.Save();
            }
        }
Beispiel #2
0
        /// <summary>
        /// Selects this language and deselects the previously selected language.
        /// </summary>
        public void Select()
        {
            if (selectedEntry != this)
            {
                if (selectedEntry != null)
                {
                    selectedEntry.IsSelected = false;
                }
                selectedEntry   = this;
                this.IsSelected = true;

                App.Instance.SelectCulture(culture);
                App.Instance.Settings.SelectedLanguage = LanguageCode;
                App.Instance.Settings.Save();

                foreach (var theme in Theme.AvailableThemes)
                {
                    theme.OnLocalizedNameChanged();
                }
            }
        }