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) { }
// метод перехода в следующее состояние protected void GoToState(State newState) { OnExit(); sm.CurrentState = newState; }