示例#1
0
文件: Radio.cs 项目: skalinkin/Dora
 public void Detach(IMonitoringObserver observer)
 {
     observer.SetSubject(null);
     _observers.Remove(observer);
 }
示例#2
0
 public DemoObserverPattern(ITransmitReceiver output, IEnumerable <Radio> radios, IMonitoringObserver monitor)
 {
     _output  = output;
     _radios  = radios;
     _monitor = monitor;
 }
示例#3
0
文件: Radio.cs 项目: skalinkin/Dora
 public void Attach(IMonitoringObserver observer)
 {
     observer.SetSubject(this);
     _observers.Add(observer);
 }