예제 #1
0
        protected void UpdateQuantity(SaleItemViewModel item, int value)
        {
            item.Quantity += value;

            NotifyOfPropertyChange(() => CanCheckout);
            NotifyOfPropertyChange(() => TotalQuantity);
            NotifyOfPropertyChange(() => Total);
            NotifyOfPropertyChange(() => TotalText);
        }
예제 #2
0
        protected void UpdateQuantity(SaleItemViewModel item, int value)
        {
            item.Quantity += value;

            NotifyOfPropertyChange(() => CanCheckout);
            NotifyOfPropertyChange(() => TotalQuantity);
            NotifyOfPropertyChange(() => Total);
            NotifyOfPropertyChange(() => TotalText);
        }
예제 #3
0
 public void RemoveItem(SaleItemViewModel item)
 {
     UpdateQuantity(item, -1);
 }
예제 #4
0
 public void AddItem(SaleItemViewModel item)
 {
     UpdateQuantity(item, 1);
 }
예제 #5
0
 public void RemoveItem(SaleItemViewModel item)
 {
     UpdateQuantity(item, -1);
 }
예제 #6
0
 public void AddItem(SaleItemViewModel item)
 {
     UpdateQuantity(item, 1);
 }