public void DeregisterObserver(IObserver o) { _observers.Remove(o); }
public void RegisterObserver(IObserver o) { _observers.Add(o); }
public void Add(IObserver obj) { this.observer.Add(obj); }
/// <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; }
public void Remove(IObserver obj) { this.observer.Remove(obj); }