public void AddToCars(Car car) { if (_Cars.Contains(car)) return; car.RemoveOwningCustomer(); car.OwningCustomer = this; _Cars.Add(car); onAddToCars(car); }
public void RemoveFromCars(Car car) { if (!_Cars.Contains(car)) return; car.OwningCustomer = null; _Cars.Remove(car); onRemoveFromCars(car); }
private void onRemoveFromCars(Car car) { }
private void onAddToCars(Car car) { }