示例#1
0
        public void RemoveVehicleFromTheGarage(GarageSlot i_GarageSlotToRemove)
        {
            if (i_GarageSlotToRemove.M_CurrentStatus != GarageSlot.eGarageStatus.PaidFor)
            {
                throw new ArgumentException(string.Format("The vehicle cannot be released to {0} because it wasn't paid for!\n", i_GarageSlotToRemove.M_OwnerName));
            }

            m_MyGarage.Remove(i_GarageSlotToRemove.M_Vehicle.M_LicenseNumber);
        }
示例#2
0
 public void AddVehicleToTheGarage(GarageSlot i_NewGarageSlot)
 {
     m_MyGarage.Add(i_NewGarageSlot.M_Vehicle.M_LicenseNumber, i_NewGarageSlot);
 }