Ejemplo n.º 1
0
        private void EnteredText(object arg)
        {
            string text = arg.ToString();

            stateScreens = ScreensMachine.EnteredText(text);
            UpdateState();
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 public void SetState(IStateScreens stateScreens)
 {
     state = stateScreens;
 }
Ejemplo n.º 4
0
 private void Button3Pressed(object arg)
 {
     stateScreens = ScreensMachine.Button3Pressed();
     UpdateState();
 }
Ejemplo n.º 5
0
 public ViewModelScreens()
 {
     ScreensMachine = new ScreensMachine();
     stateScreens   = ScreensMachine.GetState();
     UpdateState();
 }