public void AddNewVehicle(string i_LicenseNumber) { Ex03.GarageLogic.Builder.VehicleTypes type = GarageUI.GetVehicleType(); string modelName = GarageUI.GetModelName(); float reamainingEnergy = GarageUI.GetReamainingEnergy(); string manufacturerName = GarageUI.GetManufacturerName(); float currentAirPressure = GarageUI.GetCurrentAirPressure(); Vehicles newVehicle; newVehicle = builder.CreatVehicle(modelName, i_LicenseNumber, type, reamainingEnergy, manufacturerName, currentAirPressure); GarageUI.SetColor(newVehicle); GarageUI.SetDoor(newVehicle); GarageUI.SetHaveHazardousMaterials(newVehicle); GarageUI.SetVolumeOfCargo(newVehicle); GarageUI.SetLicenseType(newVehicle); GarageUI.SetEngineCapacity(newVehicle); AddNewVehicleGarage(newVehicle); }