public override void execute(AnomalousMvcContext context)
        {
            BackStackModel backStack = context.getModel <BackStackModel>(BackStackModelName);

            if (backStack != null)
            {
                backStack.setCurrentAction(context.ExecutingAction);
            }
            else
            {
                Log.Warning("Cannot find BackStackModel '{0}'. Has it been setup properly?", BackStackModelName);
            }
        }
Esempio n. 2
0
        public override void execute(AnomalousMvcContext context)
        {
            BackStackModel backStack = context.getModel <BackStackModel>(BackStackModelName);

            if (backStack != null)
            {
                String backAction = backStack.getPreviousAction();
                if (backAction != null)
                {
                    backStack.ignoreNextCurrentAction();
                    context.queueRunAction(backAction);
                }
            }
            else
            {
                Log.Warning("Cannot find BackStackModel '{0}'. Has it been setup properly?", BackStackModelName);
            }
        }