Esempio n. 1
0
        private void SaveSettings(object sender, EventArgs e)
        {
            if (User.Instance.Name != _name || User.Instance.Email != _email)
            {
                if (!User.Instance.UpdateInformation(_name, _email))
                {
                    return;
                }
            }

            _settings.LanguageId = SelectedLanguage.Id;
            User.Instance.UpdateSettings(_settings);


            if (_languageChanged)
            {
                App.Content = ContentHandler.UpdateContent();
                AchievementHandler.ResetAchievements();
                OnPropertyChanged("Content");
            }

            _languageChanged = false;
            ErrorHandler.ShowError(Content["TEXT_SETTINGS_UPDATED"].ToString());
        }