public void MoveToTableProducts(ProductToSell product) { if (!Tables.Get(Index).Products.Contains(product)) { Tables.Get(Index).Products.Add(product); } Tables.Get(Index).Products.Get(product).Amount++; }
public void MoveToProductsToSell(ProductToSell product) { if (!ProductsToSell.Contains(product)) { ProductsToSell.Add(product); } ProductsToSell.Get(product).Amount++; SubstractTableProduct(product); }
public void SubstractTableProduct(ProductToSell product) { if (Tables.Get(Index).Products.Get(product).Amount < 2) { Tables.Get(Index).Products.Remove(product); } else { Tables.Get(Index).Products.Get(product).Amount--; } }
public void SubstractProductToSell(ProductToSell product) { if (ProductsToSell.Get(product).Amount < 2) { ProductsToSell.Remove(product); } else { ProductsToSell.Get(product).Amount--; } }
public void AddTableProduct(ProductToSell product) { Tables.Get(Index).Products.Get(product).Amount++; }
public void AddProductToSell(ProductToSell product) { ProductsToSell.Get(product).Amount++; }