public override void Execute() { if ((int)SharedViewState.Instance.CurrentView < 4) { mainFormView.SendStringAsKey("^V"); //expressionTextBox.Paste(); } else if ((int)SharedViewState.Instance.CurrentView == 4) { if (scriptingCodeEditor.Focused) { scriptingCodeEditor.Paste(); } else { mainFormView.SendStringAsKey("^V"); } } else { if (customFunctionsCodeEditor.Focused) { customFunctionsCodeEditor.Paste(); } else { mainFormView.SendStringAsKey("^V"); } } }
public override void Execute() { if ((int)_sharedViewState.CurrentView < 4) { _applicationManager.SendStringAsKey("^V"); //expressionTextBox.Paste(); } else if ((int)_sharedViewState.CurrentView == 4) { if (scriptingCodeEditor.Focused) { scriptingCodeEditor.Paste(); } else { _applicationManager.SendStringAsKey("^V"); } } else { if (customFunctionsCodeEditor.Focused) { customFunctionsCodeEditor.Paste(); } else { _applicationManager.SendStringAsKey("^V"); } } }