/// <summary> /// Removes the subscriber from the list of subscribers - when notify is called /// then all currently registered subscribers are called. /// </summary> /// <param name="subscriber"></param> public void Detach(CalendarSubscriber subscriber) { if (Subscribers.Contains(subscriber)) { Subscribers.Remove(subscriber); } }
/// <summary> /// Registers new subscriber to the list of subscribers - when notify is called /// then all currently registered subscribers are called. /// </summary> /// <param name="subscriber"></param> public void Attach(CalendarSubscriber subscriber) { if (!Subscribers.Contains(subscriber)) { Subscribers.Add(subscriber); } }