//Create New Customer private void CreateNewCustomer() { Console.Clear(); Customer newCustomer = new Customer(); //FistName Console.WriteLine("What is the first name of this customer?"); newCustomer.FirstName = Console.ReadLine(); //LastName Console.WriteLine("What is the last name of this customer?"); newCustomer.LastName = Console.ReadLine(); //Type of Customer Console.WriteLine("Enter the number of the Customer Type.\n" + "1. Current\n" + "2. Past\n" + "3. Potential"); string typeAsString = Console.ReadLine(); int typeAsInt = int.Parse(typeAsString); newCustomer.TypeOfCustomer = (CustomerType)typeAsInt; _customerRepo.AddCustomerToList(newCustomer); }
//Create new Customer private void CreateNewCustomer() { Console.Clear(); Customer newCustomer = new Customer(); //First Name Console.WriteLine("Enter the first name of the customer"); newCustomer.FirstName = Console.ReadLine(); //Last Name Console.WriteLine("Enter the last name of the customer"); newCustomer.LastName = Console.ReadLine(); //Follow Speed Limit Console.WriteLine("How skilled is this customer at following the speed limit? (enter a number between 1(worst) and 10(best))"); string sppedAsString = Console.ReadLine(); newCustomer.FollowSpeedLimitSkill = int.Parse(sppedAsString); //Stay In Lane Console.WriteLine("How skilled is this customer at staying in their lane? (enter a number between 1(worst) and 10(best))"); string laneAsString = Console.ReadLine(); newCustomer.StayInLaneSkill = int.Parse(laneAsString); //Full Stop Console.WriteLine("How skilled is this customer at coming to a full stop at stop signs? (enter a number between 1(worst) and 10(best))"); string stopAsString = Console.ReadLine(); newCustomer.FullStopSkill = int.Parse(stopAsString); //Following Distance Console.WriteLine("How skilled is this customer at leaving the proper following distance? (enter a number between 1(worst) and 10(best))"); string distanceAsString = Console.ReadLine(); newCustomer.FollowingDistanceSkill = int.Parse(distanceAsString); _customerRepo.AddCustomerToList(newCustomer); }