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