private void EnteredText(object arg) { string text = arg.ToString(); stateScreens = ScreensMachine.EnteredText(text); UpdateState(); }
public ScreensMachine() { initialState = new CreatorInitialState().CreateState(this); button1Pressed = new CreatorButton1PressedState().CreateState(this); button2Pressed = new CreatorButton2PressedState().CreateState(this); enteredAnyText = new CreatorEnteredAnyTextState().CreateState(this); enteredSetText = new CreatorEnteredSetTextState().CreateState(this); state = initialState; }
public void SetState(IStateScreens stateScreens) { state = stateScreens; }
private void Button3Pressed(object arg) { stateScreens = ScreensMachine.Button3Pressed(); UpdateState(); }
public ViewModelScreens() { ScreensMachine = new ScreensMachine(); stateScreens = ScreensMachine.GetState(); UpdateState(); }