Пример #1
0
 private void View_DeleteProductFromCart(int obj)
 {
     for (int i = 0; i < products.ReturnProductos().Count; i++)
     {
         if (products.ReturnProduct(i).Name == cart.ReturnProductFromCart(obj).Name)
         {
             ++products.ReturnProduct(i).Quantity;
             break;
         }
     }
     cart.DeleteProductFromCart(obj);
     LoadCartList();
 }