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"); }
public override void Execute() { switch ((int)_sharedViewState.CurrentView) { case 4: if (scriptingCodeEditor.Focused) { scriptingCodeEditor.Cut(); } else { _applicationManager.SendStringAsKey("^X"); } break; case 5: if (customFunctionsCodeEditor.Focused) { customFunctionsCodeEditor.Cut(); } else { _applicationManager.SendStringAsKey("^X"); } break; default: //if ((int)_sharedViewState.CurrentView < 4) _applicationManager.SendStringAsKey("^X"); //expressionTextBox.Cut(); break; } }
public override void Execute() { switch ((int)_sharedViewState.CurrentView) { case 0: //if (_calculationsMode == CalculationsMode.Real) if (_charts.ContainsKey(_sharedViewState.CalculationsMode)) { _charts[_sharedViewState.CalculationsMode].Print(); } // else // SendStringAsKey("^P"); break; case 4: //scriptingCodeEditor(); break; case 5: //this.customFunctionsCodeEditor break; default: _applicationManager.SendStringAsKey("^P"); //this.chart2d.Printing.PrintPreview(); break; } }