Пример #1
0
        protected void UpdateQuantity(PayItemViewModel item, int value)
        {
            item.Quantity += value;

            NotifyOfPropertyChange(() => CanCompletePayment);
            NotifyOfPropertyChange(() => Total);
            NotifyOfPropertyChange(() => TotalText);
        }
Пример #2
0
 public void AddItem(PayItemViewModel item)
 {
     UpdateQuantity(item, 1);
 }
Пример #3
0
 public void RemoveItem(PayItemViewModel item)
 {
     UpdateQuantity(item, -1);
 }
Пример #4
0
 public void AddItem(PayItemViewModel item)
 {
     UpdateQuantity(item, 1);
 }
Пример #5
0
        protected void UpdateQuantity(PayItemViewModel item, int value)
        {
            item.Quantity += value;

            NotifyOfPropertyChange(() => CanCompletePayment);
            NotifyOfPropertyChange(() => Total);
            NotifyOfPropertyChange(() => TotalText);
        }
Пример #6
0
 public void RemoveItem(PayItemViewModel item)
 {
     UpdateQuantity(item, -1);
 }