private Dictionary <string, string> getVehicleProperties(string i_VehicleType, string i_EnergySource) { Dictionary <string, string> VehicleProperties = new Dictionary <string, string>(); foreach (string propertie in SystemVehiclesSupport.GetVehicleProperties(i_VehicleType, i_EnergySource)) { Console.WriteLine(propertie + ":"); VehicleProperties.Add(propertie, Console.ReadLine()); } return(VehicleProperties); }
private Vehicle getNewVehicle(string i_LicensePlate) { Vehicle newVehicle; string energySource; Dictionary <string, string> vehicleProperties; string vehicleType = getUserSelection(SystemVehiclesSupport.SupportedVehicles); energySource = getUserSelection(SystemVehiclesSupport.GetEnergySources(vehicleType)); vehicleProperties = getVehicleProperties(vehicleType, energySource); vehicleProperties.Add("License plate", i_LicensePlate); newVehicle = SystemVehiclesSupport.CreateVehicle(ref vehicleType, energySource, vehicleProperties); return(newVehicle); }