Esempio n. 1
0
 private void DeleteBasketItem()
 {
     BasketItems.Remove(_selectedItem);
     OnPropertyChanged("HeightSelectedItem");
     UpdateDiscount();
     UpdateTotalPrice();
 }
Esempio n. 2
0
 public void OnDeleteClickCommand(object obj)
 {
     if (!(obj is BasketItem item))
     {
         return;
     }
     BasketItems.Remove(item);
 }
        private void BasketItemsChanged(Product removedItem)
        {
            BasketItems.Remove(removedItem);
            RaisePropertyChanged("BasketItems");

            if (Products.Any(p => p.Id == removedItem.Id))
            {
                Products.Single(p => p.Id == removedItem.Id).Stock++;
                RaisePropertyChanged("Products");
            }
        }
Esempio n. 4
0
 private void RemoveFromBasketCommandExecute(object obj)
 {
     BasketItems.Remove(SelectedBasketItem);
 }