Example #1
0
 public void Unregister(AbstractObserver observer)
 {
     if (this.observers.Contains(observer))
     {
         observers.Remove(observer);
     }
 }
Example #2
0
 public void Register(AbstractObserver observer)
 {
     if (!this.observers.Contains(observer))
     {
         observers.Add(observer);
     }
 }
Example #3
0
 public void Unregister(AbstractObserver observer)
 {
     observers.Remove(observer);
 }
Example #4
0
 public void Register(AbstractObserver observer)
 {
     observers.Add(observer);
 }