예제 #1
0
 public MessageObserver(IMessageSubject subject)
 {
     message = null;
     subject.AddObserver(this);
 }
예제 #2
0
 public void Update(Status newStatus)
 {
     message = newStatus;
 }
예제 #3
0
 public MessageSubject()
 {
     message = null;
     observerList = new List<IMessageObserver>();
 }