Beispiel #1
0
        private void DeleteLocal(GameViewModel owner)
        {
            owner.UpdateLocal(null, Local.Achievement);

            Local = new AchievementViewModel(owner, "Local");
            OnPropertyChanged(() => Local);
            UpdateModified();
        }
Beispiel #2
0
        private void UpdateLocal(GameViewModel owner)
        {
            var achievement = Generated.Achievement;

            if (achievement.Id == 0 && Local.Id > 0)
            {
                achievement.Id = Local.Id;
            }
            if (!String.IsNullOrEmpty(Local.BadgeName))
            {
                achievement.BadgeName = Local.BadgeName;
            }

            owner.UpdateLocal(achievement, Local.Achievement);

            Local = new AchievementViewModel(owner, "Local");
            Local.LoadAchievement(achievement);

            OnPropertyChanged(() => Local);
            UpdateModified();
        }