public void UnSubscribe(Subject subject) { this.SubjectCollection.Remove(subject); subject.Detach(this); }
public void Subscribe(Subject subject) { this.SubjectCollection.Add(subject); subject.Attach(this); }
public void UnSubscribe(Subject subject) { this.SubjectCollection.Remove(subject); subject.Detach(this); }
public void Subscribe(Subject subject) { this.SubjectCollection.Add(subject); subject.Attach(this); }