示例#1
0
 // Add new route to the system
 private void AddRoute(EzySystem ezySystem)
 {
     Console.Write("Please enter the name of the bus that you want to modify: ");
     string busName = Console.ReadLine();
     Console.Write("Please enter the initial bus stop: ");
     string initialBusStop = Console.ReadLine();
     Console.Write("Please enter the terminal bus stop: ");
     string terminalBusStop = Console.ReadLine();
     Console.Write("Please enter the travel time from initial bus stop to terminal bus stop : ");
     string trv = Console.ReadLine();
     int traveltime = System.Convert.ToInt32(trv, 10);
     ezySystem.CreateRoute(busName, initialBusStop, terminalBusStop, traveltime);
     
 }