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 UserPicksEmployees() { Console.WriteLine(" Choose 1 to add Employees to Staff \n Choose 2 to remove Employees to Staff\n Choose 3 to display your Staff\n Choose 4 to save Staff\n Choose 5 to display Crew\n Choose 6 to end program\n Choose 7 to go to Menu\n"); bool Running = true; while (Running) { switch (Console.ReadKey().KeyChar.ToString()) { case "1": Console.WriteLine(" Add Employees for the day:"); AddEmployees(); continue; case "2": Console.WriteLine(" Remove Employess from Daily Staff:"); RemoveEmployees(); continue; case "3": Console.WriteLine(" Staff:"); foreach (string s in Staff) { Console.WriteLine(s); } continue; case "4": Console.WriteLine(" Save Staff:"); SaveStaff(); continue; case "5": Console.WriteLine(" All Staff:"); filereader.ReadFromFile("../../Staff.txt"); continue; case "6": Running = false; break; case "7": Console.WriteLine(" Menu: \n"); usercontrols.GetUserControl(); return; default: Console.WriteLine(" Not Valid User Input"); continue; } break; } }
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; } }
public void MakeResturantStaff() { Console.WriteLine(" Choose 1 to add Employees to Wait Staff\n Choose 2 to add Employees to Bar Staff\n Choose 3 to add Employees to Kitchen Staff\n Choose 4 to end program\n Choose 5 to go to Menu\n"); bool Running = true; while (Running) { switch (Console.ReadKey().KeyChar.ToString()) { case "1": Console.WriteLine(" Add Wait Staff:"); MakewaitStaff(); break; case "2": Console.WriteLine(" Add Bar Staff:"); MakeBarStaff(); break; case "3": Console.WriteLine(" Add Kithen Staff:"); MakeKitchenStaff(); break; case "4": Running = false; break; case "5": Console.WriteLine(" Menu: \n"); usercontrols.GetUserControl(); return; default: Console.WriteLine(" Not valid user input"); continue; } } }