public override void Execute()
        {
            if ((int)_sharedViewState.CurrentView < 4)
            {
                _applicationManager.SendStringAsKey("^Y");
                //expressionTextBox.do()
            }
            else if ((int)_sharedViewState.CurrentView == 4)
            //scriptingCodeEditor.Focus();
            {
                if (scriptingCodeEditor.Focused)
                {
                    scriptingCodeEditor.Redo();
                }
                else
                {
                    _applicationManager.SendStringAsKey("^Y");
                }
            }
            else
            {
                if (customFunctionsCodeEditor.Focused)
                {
                    customFunctionsCodeEditor.Redo();
                }
                else
                {
                    _applicationManager.SendStringAsKey("^Y");
                }
            }

            _applicationManager.SendStringAsKey("^Y");
        }
Beispiel #2
0
        public override void Execute()
        {
            if ((int)SharedViewState.Instance.CurrentView < 4)
            {
                mainFormView.SendStringAsKey("^Y");
                //expressionTextBox.do()
            }
            else if ((int)SharedViewState.Instance.CurrentView == 4)
            //scriptingCodeEditor.Focus();
            {
                if (scriptingCodeEditor.Focused)
                {
                    scriptingCodeEditor.Redo();
                }
                else
                {
                    mainFormView.SendStringAsKey("^Y");
                }
            }
            else
            {
                if (customFunctionsCodeEditor.Focused)
                {
                    customFunctionsCodeEditor.Redo();
                }
                else
                {
                    mainFormView.SendStringAsKey("^Y");
                }
            }

            mainFormView.SendStringAsKey("^Y");
        }