public void DetachSubscriber(IWorkTimeEventDetailObserver subscriber) { if (!observers.Contains(subscriber)) { throw new ArgumentException("Subscriber does not exist"); } observers.Remove(subscriber); }
public void AttachSubscriber(IWorkTimeEventDetailObserver subscriber) { observers.Add(subscriber); }