Example #1
0
        void OpenScreen(IApplicationContext ctx, Step step, Dictionary <String, object> parameters = null, bool isBackCommand = false)
        {
            step.Parameters = parameters;
            if (_currentStep != step)
            {
                step.Init();
                _history.Push(step);
                _currentStep = step;
            }

            string controller = String.IsNullOrEmpty(step.Controller) ? Controller : step.Controller;

            ctx.OpenScreen(step.Screen, controller, step.Parameters, isBackCommand);
        }
Example #2
0
        void OpenScreen(IApplicationContext ctx, Step step, Dictionary<String, object> parameters = null, bool isBackCommand = false)
        {
            step.Parameters = parameters;
            if (_currentStep != step)
            {
                step.Init();
                _history.Push(step);
                _currentStep = step;
            }

            string controller = String.IsNullOrEmpty(step.Controller) ? Controller : step.Controller;
            ctx.OpenScreen(step.Screen, controller, step.Parameters, isBackCommand);
        }