Beispiel #1
0
 /// <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);
     }
 }
Beispiel #2
0
 /// <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);
     }
 }