示例#1
0
 void OnAdd(BalanceItemViewModel item)
 {
     item.Amount++;
     OnPropertyChanged("Sum");
     OnPropertyChanged("BalanceAfterCalculation");
     OnPropertyChanged("IsBalanceAfterCalculationNegative");
 }
示例#2
0
 void OnSubtract(BalanceItemViewModel item)
 {
     if (item.Amount > 0)
     {
         item.Amount--;
         OnPropertyChanged("Sum");
         OnPropertyChanged("BalanceAfterCalculation");
         OnPropertyChanged("IsBalanceAfterCalculationNegative");
     }
 }