Beispiel #1
0
 /// <summary>
 /// Add a new Cocktail
 /// </summary>
 /// <param name="ct">The cocktail to be added</param>
 public void AddCocktail(Cocktail ct)
 {
     if (!Cocktails.Contains(ct))
     {
         Cocktails.Add(ct);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Call if a cocktail is sold
 /// </summary>
 /// <param name="ct">The cocktail that was sold</param>
 public void SellCocktail(Cocktail ct)
 {
     ct.AmountSold++;
 }