Ejemplo n.º 1
0
 public void CurrentOrdersPrint()
 {
     foreach (var order in currentOrders)
     {
         OutputHandler.ConsolePrint(order.Number);
     }
 }
Ejemplo n.º 2
0
 public void OrdersCooking()
 {
     OutputHandler.ConsolePrint("We are working!");
     Thread.Sleep(500);
     for (int i = 0; i < currentOrders.Count; ++i)
     {
         currentOrders[i].TimeToCook--;
         if (currentOrders[i].TimeToCook == 0)
         {
             RemoveOrder(currentOrders[i]);
         }
     }
 }
Ejemplo n.º 3
0
        public static int[] UserChoose()
        {
            OutputHandler.MenuPrint();
            List <int> choosedPizzas = new List <int>();
            int        choose        = 0;

            while (choose != 6)
            {
                Int32.TryParse(Console.ReadLine(), out choose);
                if (choose <= 4 && choose >= 1)
                {
                    choosedPizzas.Add(choose);
                }
            }
            return(choosedPizzas.ToArray());
        }