public static void AllAccountsBanner() { Console.Clear(); PrintConsole.BannerBar(); Console.WriteLine("Printing all accounts..."); PrintConsole.BannerBar(); }
public static void MainBanner() { Console.Clear(); PrintConsole.BannerBar(); Console.WriteLine("1980's Enterprise Car Rental"); PrintConsole.BannerBar(); }
public static void AllReservationsBanner() { Console.Clear(); PrintConsole.BannerBar(); Console.WriteLine("Printing all reservations..."); PrintConsole.BannerBar(); }
public static void ReservationBanner() { Console.Clear(); PrintConsole.BannerBar(); Console.WriteLine("Reserve a Vehicle"); PrintConsole.BannerBar(); }
public static void AccountCreationBanner() { Console.Clear(); PrintConsole.BannerBar(); Console.WriteLine("Account Creation Menu"); PrintConsole.BannerBar(); }
public static void AccountBanner(string loginEmailAddress) { Console.Clear(); PrintConsole.BannerBar(); Console.WriteLine($"Welcome back, this is your account menu"); //Want to add the {CustomerAccounts.GetAllAccounts.CustomerName) to the string PrintConsole.BannerBar(); }
public static void MainMenu() { Console.WriteLine("1: Create new account"); Console.WriteLine("2: Log into existing account"); Console.WriteLine("3: Exit"); PrintConsole.BannerBar(); PrintConsole.OptionInput(); }
private static void ConsoleMainMenu() { bool active = true; while (active == true) { PrintConsole.MainBanner(); PrintConsole.MainMenu(); var option = Console.ReadLine(); switch (option) { case "1": //Create account PrintConsole.AccountCreationBanner(); Console.WriteLine("Enter first name:"); var firstName = Console.ReadLine(); Console.WriteLine("Enter Last Name:"); var lastName = Console.ReadLine(); var fullName = firstName + " " + lastName; Console.WriteLine("Enter Address:"); var customerAddress = Console.ReadLine(); Console.WriteLine("Enter Phone Number:"); var customerPhoneNumber = Console.ReadLine(); Console.WriteLine("Enter Email Address: "); var customerEmailAddress = Console.ReadLine(); Console.WriteLine("Enter your drivers License number:"); var customerDriversLicenseNumber = Console.ReadLine(); Console.WriteLine("Enter your rental credit card:"); var customerCreditCardNumber = Console.ReadLine(); //CreateAccount(string customerName, string customerAddress, string customerPhoneNumber, string customerEmailAddress, string driverLicenseNumber, int customerCreditCardNumber var account = CustomerAccounts.CreateAccount(fullName, customerAddress, customerPhoneNumber, customerEmailAddress, customerDriversLicenseNumber, customerCreditCardNumber); break; case "2": //Log into existing account ConsoleCustomerMenu(); break; case "3": // Exit active = false; break; } } }
public static void AccountMenu() { Console.WriteLine("1: Basic Info"); Console.WriteLine("2: Reserve a Car"); Console.WriteLine("3: View current reservation"); Console.WriteLine("4: Picking up"); Console.WriteLine("5: Dropping off"); Console.WriteLine("6: Return to Main Menu"); PrintConsole.BannerBar(); PrintConsole.OptionInput(); }
public static void ConsoleCustomerMenu(string loginEmailAddress) { string email = loginEmailAddress; bool active = true; while (active == true) { Console.Clear(); PrintConsole.AccountBanner(email); PrintConsole.AccountMenu(); // I think this is where the swtich for PrintAccountMenu should be var accountoption = Console.ReadLine(); switch (accountoption) { case "1": //Basic Info //CustomerAccounts.EditAccount //Remember to include the insurance part PrintConsole.AllAccountsBanner(); PrintAllAccounts(email); Console.ReadLine(); ConsoleCustomerMenu(loginEmailAddress); break; case "2": //Reserve a car //RentalAgreement.Reservation PrintConsole.ReservationBanner(); Console.WriteLine("What type of vehicle would you like?"); var rentalClass = Enum.GetNames(typeof(VehicleRentalClassification)); for (var i = 0; i < rentalClass.Length; i++) { Console.WriteLine($"{i + 1}. {rentalClass[i]}"); } Console.Write("Select number: "); var rentalClassType = Convert.ToInt32(Console.ReadLine()); // This will cause an exception if not number var vehicleRentalClassSelected = (VehicleRentalClassification)Enum.Parse(typeof(VehicleRentalClassification), rentalClass[rentalClassType - 1]); Console.WriteLine("Enter desired pickup date and time mm/dd/yy 'time': "); DateTime dateOfPickup = DateTime.Parse(Console.ReadLine()); Console.WriteLine(dateOfPickup); Console.WriteLine("Pick one of our terrible branches to pickup at:"); var rentalLocations = Enum.GetNames(typeof(RentalLocations)); for (var i = 0; i < rentalLocations.Length; i++) { Console.WriteLine($"{ i + 1}. {rentalLocations[i]}"); } var pickuplocation = Convert.ToInt32(Console.ReadLine()); var locationToPickup = (RentalLocations)Enum.Parse(typeof(RentalLocations), rentalLocations[pickuplocation - 1]); Console.WriteLine("Enter desired return date and time mm/dd/yy 'time': "); DateTime dateOfReturn = DateTime.Parse(Console.ReadLine()); Console.WriteLine(dateOfReturn); Console.WriteLine("Pick one of our disgusting branches to return to:"); for (var i = 0; i < rentalLocations.Length; i++) { Console.WriteLine($"{ i + 1}. {rentalLocations[i]}"); } var returnlocation = Convert.ToInt32(Console.ReadLine()); var locationToDropOff = (RentalLocations)Enum.Parse(typeof(RentalLocations), rentalLocations[returnlocation - 1]); Console.WriteLine("Please let us know what city you are headed with the vehicle:"); var destination = Console.ReadLine(); Console.WriteLine("Please provide the names of the drivers:"); var drivers = Console.ReadLine(); //Reservation(DateTime dateOfPickup, string locationToPickup, DateTime dateOfReturn, string locationtoDropOff, string destination, string drivers) //RentalAgreement.Reservation(); RentalAgreement.Reservation(dateOfPickup, locationToPickup, dateOfReturn, locationToDropOff, destination, drivers, email); ConsoleCustomerMenu(email); break; case "3": //Current reservation PrintConsole.AllReservationsBanner(); PrintConsole.MyReservations(email); Console.ReadLine(); ConsoleCustomerMenu(email); break; case "4": //Pickup //RentalAgreement.CheckOutVehical //Need to have a check to make sure that this is completed //InsuranceInformation.PolicyInformation ConsoleCustomerMenu(email); break; case "5": //Dropoff //RentalAgreement.CheckInVehicle ConsoleCustomerMenu(email); break; //Return to main menu case "6": ConsoleMainMenu(); active = false; break; } break; } }