示例#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);
 }