public bool RemoveCustomer(Customer customer) { if (customer == null) { throw new ArgumentNullException(); } if (!Customers.Contains(customer)) { return(false); } Customers.Remove(customer); if (TripIterator.Current == null) { return(false); } TripIterator.Current.ServicedCustomers.Add(customer); ServedCustomers.Add(customer); return(true); }
internal void Depart(Customer customer) { customer.DepartureTime = _sim.ClockTime; ServedCustomers.Add(customer); InSystemCounter.ObserveChange(-1); }