public SecondScreenThanksState(WindowStateMachine stateMachine) { stateChangeNextEventHandler = (a, b) => GoToState(new InitialState(this)); OnInit(stateMachine); }
public SecondScreenTextingState(WindowStateMachine stateMachine) { OnInit(stateMachine); }
public SecondButtonActiveState(WindowStateMachine stateMachine) { stateChangeEventHandler = (a, b) => GoToState(new SecondScreenInitState(this)); OnInit(stateMachine); }
public SecondScreenInitState(WindowStateMachine stateMachine) { stateChangeEventHandler = (a, b) => GoToState(new SecondScreenTextingState(this)); OnInit(stateMachine); }
// метод инициализации состояния protected void OnInit(WindowStateMachine stateMachine) { sm = stateMachine; window = stateMachine.Window; OnEnter(); }