Exemple #1
0
 void Detach(iObserver observer);
Exemple #2
0
 void Attach(iObserver observer);
Exemple #3
0
 //implement Detach Method - Detach from subject when no longer in use
 public void Detach(iObserver observer)
 {
     list_observer.Remove(observer);
 }
Exemple #4
0
 //implement Attach Method - attach to subject
 public void Attach(iObserver observer)
 {
     list_observer.Add(observer);
 }
Exemple #5
0
 // detach observer from the subject
 public void Detach(iObserver observer)
 {
     observerList.Remove(observer);
 }
Exemple #6
0
 // attach observer to the subject
 public void Attach(iObserver observer)
 {
     observerList.Add(observer);
 }