Пример #1
0
 public void CurrentOrdersPrint()
 {
     foreach (var order in currentOrders)
     {
         OutputHandler.ConsolePrint(order.Number);
     }
 }
Пример #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]);
         }
     }
 }