예제 #1
0
 /// <summary> Убавить счет </summary>
 void IChangeScore.Substract(int score)
 {
     Score -= score;
     if (Score < StateNames.First(n => n.Level == _state).Score&& State > 0)
     {
         State--;
         MessageBox.Show("Сочуствуем вашему понижению уровня.", "Понижение.", MessageBoxButton.OK, MessageBoxImage.Information);
     }
 }
예제 #2
0
 /// <summary> Прибавить счет </summary>
 void IChangeScore.Add(int score)
 {
     Score += score;
     if (Score > StateNames.First(n => n.Level == _state).ScoreUp&& State < StateNames.Length - 1)
     {
         State++;
         MessageBox.Show("Поздравления с повышением в уровне!", "Повышение!", MessageBoxButton.OK, MessageBoxImage.Information);
     }
 }