public void MoveToProductsToSell(ProductToSell product) { if (!ProductsToSell.Contains(product)) { ProductsToSell.Add(product); } ProductsToSell.Get(product).Amount++; SubstractTableProduct(product); }
public void SubstractProductToSell(ProductToSell product) { if (ProductsToSell.Get(product).Amount < 2) { ProductsToSell.Remove(product); } else { ProductsToSell.Get(product).Amount--; } }
public void Clear() { ProductsToSell.Clear(); }
public void Remove(ProductToSell product) { ProductsToSell.RemoveAt(IndexOf(product)); }
public void Remove(int index) { ProductsToSell.RemoveAt(index - 1); }
public void Add(ProductToSell product) { ProductsToSell.Add(product); }
public void AddProductToSell(ProductToSell product) { ProductsToSell.Get(product).Amount++; }