예제 #1
0
 public void GettingSugarPitcher(Inventory inventory, Recipe recipe)
 {
     Console.WriteLine("How many cubes of sugar do you want to have per pitcher?");
     amountOfSugarPerPitcherInput = Console.ReadLine();
     try
     {
         amountOfSugarPerPitcher = Convert.ToInt32(amountOfSugarPerPitcher);
         inventory.CheckingInventorySugar(inventory, recipe);
     }
     catch
     {
         Console.WriteLine("You didnt type in a number. try again");
         GettingSugarPitcher(inventory, recipe);
     }
 }