public void ViewMenus() { UserControls user = new UserControls(); Console.WriteLine(" Choose 1 to view Daily Menu\n Choose 2 to view Happy Hour Menu\n Choose 3 to End\n Choose 4 to go to Menu\n"); bool Running = true; while (Running) { switch (Console.ReadKey().KeyChar.ToString()) { case "1": DisplayMenu(); continue; case "2": DisplayHappyHourMenu(); continue; case "3": Running = false; break; case "4": Console.WriteLine(" Menu: \n"); user.GetUserControl(); return; default: Console.WriteLine(" Not valid user input"); continue; } } }
static void Main(string[] args) { UserControls usercontrols = new UserControls(); usercontrols.GetUserControl(); Console.ReadLine(); }
public void UserChecksResturantStats() { MakeStaff makestaff = new MakeStaff(); UserControls usercontrols = new UserControls(); Console.WriteLine(" Choose 1 to check inventory of ingredients \n Choose 2 to hire an employee\n Choose 3 to check if resturant is clean \n Choose 4 to take reservations\n Choose 5 to End \n Choose 6 to go to Menu\n"); bool Running = true; while (Running) { switch (Console.ReadKey().KeyChar.ToString()) { case "1": Console.WriteLine(" Inventory:"); Inventory(); continue; case "2": Console.WriteLine(" Hire:"); makestaff.MakeResturantStaff(); continue; case "3": Console.WriteLine(" Resturant:"); Isclean(); continue; case "4": Console.WriteLine(" Reservations:"); TakeReservations(); continue; case "6": Running = false; break; case "7": Console.WriteLine(" Menu: \n"); usercontrols.GetUserControl(); return; default: Console.WriteLine(" Not Valid User Input"); continue; } break; } }