protected void UpdateQuantity(SaleItemViewModel item, int value) { item.Quantity += value; NotifyOfPropertyChange(() => CanCheckout); NotifyOfPropertyChange(() => TotalQuantity); NotifyOfPropertyChange(() => Total); NotifyOfPropertyChange(() => TotalText); }
public void RemoveItem(SaleItemViewModel item) { UpdateQuantity(item, -1); }
public void AddItem(SaleItemViewModel item) { UpdateQuantity(item, 1); }