public void SelectTime(string showTime) { var showSeat = new ShowSeat(); string time; Console.WriteLine(" Available Screening times"); Console.WriteLine("A. Saturday 15th May 11:00"); Console.WriteLine("B. Saturday 15th May 13:00"); Console.WriteLine("C. Saturday 15th May 15:00"); Console.WriteLine("D. Saturday 15th May 17:00"); Console.WriteLine("Please select a showing time."); time = Console.ReadLine(); while (time != "A" && time != "B" && time != "C" && time != "D") { Console.WriteLine("Please try again."); time = Console.ReadLine(); } switch (time) { case "1": break; case "2": break; } this.showTime = showTime; }
public void HomeMenu() { string showName = "", showDate = "", showTime = ""; var show = new Show(); var showSeat = new ShowSeat(); string choice; Console.WriteLine("You have succesfully logged in"); Console.WriteLine("1. Buy tickets for a show"); Console.WriteLine("2. Log Out"); Console.WriteLine("Please enter your desired option to proceed."); choice = Console.ReadLine(); while (choice != "1" && choice != "2") { Console.WriteLine("Please select a valid option."); choice = Console.ReadLine(); } switch (choice) { case "1": show.SelectShow(showName, showDate); show.SelectTime(showTime); showSeat.GetNumSeats(); showSeat.PurchaseSeat(); break; case "2": Environment.Exit(0); break; } ; }