Beispiel #1
0
 public ObserverClass()
 {
     message       = "Updating Observer Class";
     observerState = new ObserverState(Constants.OBSERVER_STATE_INIT_ID, Constants.OBSERVER_STATE_INIT);
 }
Beispiel #2
0
 public string update(ObserverState state)
 {
     observerState = state;
     return(message + "Current observer state is: " + observerState);
 }
Beispiel #3
0
 public ObserverSubject()
 {
     _subjectState = new ObserverState(Constants.OBSERVER_STATE_INIT_ID, Constants.OBSERVER_STATE_INIT);
     observers     = new ObservableCollection <IObserverWPF>();
 }