public void DeregisterObserver(IObserver o)
 {
     _observers.Remove(o);
 }
 public void RegisterObserver(IObserver o)
 {
     _observers.Add(o);
 }
Beispiel #3
0
 public void Add(IObserver obj)
 {
     this.observer.Add(obj);
 }
Beispiel #4
0
 /// <summary>
 /// 建構子
 /// </summary>
 /// <param name="observers">所有觀察者集合</param>
 /// <param name="observer">當前觀察者</param>
 internal Unsubscriber(List <IObserver <DateTime> > observers, IObserver <DateTime> observer)
 {
     this.Observers = observers;
     this.Observer  = observer;
 }
Beispiel #5
0
 public void Remove(IObserver obj)
 {
     this.observer.Remove(obj);
 }