コード例 #1
0
        public override void Execute()
        {
            if ((int)_sharedViewState.CurrentView < 4)
            {
                _applicationManager.SendStringAsKey("^A"); //expressionTextBox.SelectAll();
            }
            else if ((int)_sharedViewState.CurrentView == 4)
            {
                if (scriptingCodeEditor.Focused)
                {
                    scriptingCodeEditor.SelectAll();
                }
                else
                {
                    _applicationManager.SendStringAsKey("^A");
                }
            }
            else
            {
                if (customFunctionsCodeEditor.Focused)
                {
                    customFunctionsCodeEditor.SelectAll();
                }
                //  else
                _applicationManager.SendStringAsKey("^A");
            }

            _applicationManager.SendStringAsKey("^A");
        }
コード例 #2
0
        public override void Execute()
        {
            if ((int)SharedViewState.Instance.CurrentView < 4)
            {
                mainFormView.SendStringAsKey("^A"); //expressionTextBox.SelectAll();
            }
            else if ((int)SharedViewState.Instance.CurrentView == 4)
            {
                if (scriptingCodeEditor.Focused)
                {
                    scriptingCodeEditor.SelectAll();
                }
                else
                {
                    mainFormView.SendStringAsKey("^A");
                }
            }
            else
            {
                if (customFunctionsCodeEditor.Focused)
                {
                    customFunctionsCodeEditor.SelectAll();
                }
                //  else
                mainFormView.SendStringAsKey("^A");
            }

            mainFormView.SendStringAsKey("^A");
        }