public void CurrentOrdersPrint() { foreach (var order in currentOrders) { OutputHandler.ConsolePrint(order.Number); } }
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]); } } }
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()); }