void PaymentScreen(HamburgerMenu hamburgerMenu) { Clear(); WriteLine("CHECK\n" + hamburgerMenu.GetDescription() + "\nTOTAL:" + hamburgerMenu.GetCost() + "\nPush ENTER button to continue."); ck = ReadKey().Key; if (ck != ConsoleKey.Enter) { WriteLine("Please try again!"); Sleep(1000); PaymentScreen(hamburgerMenu); } else { Clear(); cashRegister.putCash(); Sleep(1000); cashRegister.CompletePayment(); Sleep(1000); cashRegister.CompleteOrder(); } }
public override double GetCost() { return(GetSnackOrBeverageCost() + hamburgerMenu.GetCost()); }