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