Example #1
0
        public void AddNewVehicle(int i_VehicleType, string i_LicenseNumber, string i_ModelType, string i_ManufacturerName, string i_OwnerName, string i_OwnerPhone)
        {
            Vehicle newVehicle;

            VehicleTypesAndBuilder.eVehicleType vehicleType = (VehicleTypesAndBuilder.eVehicleType)i_VehicleType;
            newVehicle = VehicleTypesAndBuilder.BuildVehicle(vehicleType, i_LicenseNumber, i_ModelType, i_ManufacturerName);
            CarOwnerInformation owner = new CarOwnerInformation(newVehicle, i_OwnerName, i_OwnerPhone);

            r_AllVehiclesInfo.Add(i_LicenseNumber, owner);
        }
Example #2
0
 public StringBuilder ListOfExistsVehicleTypes()
 {
     return(VehicleTypesAndBuilder.GetVehicleTypes());
 }