public void AddCarToGarage(string i_OwnerName, string i_OwnerPhone, string i_LicenseNumber, int i_VehicleTypeInt) { Vehicle newVehicle; Vehicle.eVehicleType vehicleType = (Vehicle.eVehicleType)i_VehicleTypeInt; newVehicle = Vehicle.CreateVehicle(vehicleType, i_LicenseNumber); m_CurrentVehicleInGarage = new VehicleInGarage(i_OwnerName, i_OwnerPhone, newVehicle); r_VehiclesInGarage.Add(i_LicenseNumber, m_CurrentVehicleInGarage); m_CurrentVehicleInGarage.OwnerVehicle.VehicleType = vehicleType; }