示例#1
0
        public override void action()
        {
            switch (controllerState)
            {
            case MainControllerState.StartState:
                showStartState();

                if (sw2)
                {
                    this.app.currentController = LoginController.getInstance(this.app);
                    this.app.changed           = true;
                    sw2 = false;
                }


                if (sw1)
                {
                    controllerState  = MainControllerState.CheckinState;
                    this.app.changed = true;
                    sw1 = false;
                }

                break;

            case MainControllerState.CheckinState:
                showCheckinState();


                if (sw3)
                {
                    controllerState  = MainControllerState.StartState;
                    this.app.changed = true;
                    sw3 = false;
                }

                break;
            }
        }