Beispiel #1
0
 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++;
 }
Beispiel #2
0
 public void MoveToProductsToSell(ProductToSell product)
 {
     if (!ProductsToSell.Contains(product))
     {
         ProductsToSell.Add(product);
     }
     ProductsToSell.Get(product).Amount++;
     SubstractTableProduct(product);
 }
Beispiel #3
0
 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--;
     }
 }
Beispiel #4
0
 public void SubstractProductToSell(ProductToSell product)
 {
     if (ProductsToSell.Get(product).Amount < 2)
     {
         ProductsToSell.Remove(product);
     }
     else
     {
         ProductsToSell.Get(product).Amount--;
     }
 }
Beispiel #5
0
 public void AddTableProduct(ProductToSell product)
 {
     Tables.Get(Index).Products.Get(product).Amount++;
 }
Beispiel #6
0
 public void AddProductToSell(ProductToSell product)
 {
     ProductsToSell.Get(product).Amount++;
 }