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