示例#1
0
        private void EnteredText(object arg)
        {
            string text = arg.ToString();

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