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