public void AddVehicle(Contact i_Contact, Vehicle i_Vehicle)
        {
            if (r_Entries.ContainsKey(i_Vehicle.ID))
            {
                throw new ArgumentException("Vehicle with ID " + i_Vehicle.ID + "already exists");
            }

            GarageEntry entryToAdd = new GarageEntry(i_Contact, i_Vehicle);
            r_Entries.Add(i_Vehicle.ID, entryToAdd);
        }
Ejemplo n.º 2
0
 internal GarageEntry(Contact i_Contact, Vehicle i_Vehicle)
 {
     r_Contact = i_Contact;
     r_Vehicle = i_Vehicle;
     m_Status = eVehicleStatusType.Fixing;
 }