Beispiel #1
0
 public void UnSubscribe(Subject subject)
 {
     this.SubjectCollection.Remove(subject);
     subject.Detach(this);
 }
Beispiel #2
0
 public void Subscribe(Subject subject)
 {
     this.SubjectCollection.Add(subject);
     subject.Attach(this);
 }