/// <summary> /// Produce Bøfsandwich Menu. /// </summary> public void ProduceSloppyJoe() { if (getStove.BeefQueue.Count == 0) { Debug.WriteLine(INFO_MESSAGE + "Roasting fresh beef."); getStove.PrepareBeef(); } if (getToaster.BurgerBunQueue.Count == 0) { Debug.WriteLine(INFO_MESSAGE + "Roasting burger bun."); getToaster.PrepareBurgerBun(); } if (ketchup.ServingsLeft == 0) { Debug.WriteLine(WARNING_MESSAGE + "Refilling Ketchup."); ketchup.Refill(); } if (mustard.ServingsLeft == 0) { Debug.WriteLine(WARNING_MESSAGE + "Refilling Mustard."); mustard.Refill(); } if (remoulade.ServingsLeft == 0) { Debug.WriteLine(WARNING_MESSAGE + "Refilling Remoulade."); remoulade.Refill(); } getStove.TakeBeef(); getToaster.TakeBurgerBun(); if (ketchup is Condiment && ketchup.ServingsLeft <= 30) { Debug.WriteLine($" ##################### Ketchup: {ketchup.ServingsLeft}"); Condiment condiment = (Condiment)ketchup; condiment.ServingsLeftCounter(); } if (mustard is Condiment && mustard.ServingsLeft <= 30) { Debug.WriteLine($" ##################### Mustard: {mustard.ServingsLeft}"); Condiment condiment = (Condiment)mustard; condiment.ServingsLeftCounter(); } if (remoulade is Condiment && remoulade.ServingsLeft <= 30) { Debug.WriteLine($" ##################### Remoulade: {remoulade.ServingsLeft}"); Condiment condiment = (Condiment)remoulade; condiment.ServingsLeftCounter(); } Debug.WriteLine(INFO_MESSAGE + (int)OrderList.SloppyJoe); Thread.Sleep(threadSleep); }