예제 #1
0
 private void HandleActions(IAction action)
 {
     this._state = new StringState(((SetStringAction)action).Text);
     BroadcastStateChange();
 }
예제 #2
0
 public StringStore(IActionDispatcher actionDispatcher)
 {
     _state = new StringState("ciao");
     this.actionDispatcher = actionDispatcher;
     this.actionDispatcher.Subscript(HandleActions);
 }