public SecondScreenThanksState(State state)
     : this(state.SM)
 {
 }
 public WindowStateMachine(MainWindow Window)
 {
     window = Window;
     currentState = new InitialState(this);
 }
 public SecondScreenTextingState(State state)
     : this(state.SM)
 {
 }
 public SecondScreenInitState(State state)
     : this(state.SM)
 {
 }
 public SecondButtonActiveState(State state)
     : this(state.SM)
 {
 }
Exemple #6
0
 // метод перехода в следующее состояние
 protected void GoToState(State newState)
 {
     OnExit();
     sm.CurrentState = newState;
 }