public void GoToScriptLine(ZoomToFileEventArgs evArgs) { if (evArgs.ZoomType == ZoomToFileZoomType.ZoomToCharacterPosition) { scintillaEditor.GoToPosition(evArgs.ZoomPosition); } else if (evArgs.ZoomType == ZoomToFileZoomType.ZoomToLineNumber) { scintillaEditor.GoToLine(evArgs.ZoomPosition); } scintillaEditor.Focus(); if (evArgs.SelectLine) { scintillaEditor.SelectCurrentLine(); } if (evArgs.IsDebugExecutionPoint) { scintillaEditor.ShowCurrentExecutionPoint(evArgs.ZoomPosition); if (evArgs.ErrorMessage != null) { scintillaEditor.ShowErrorMessagePopup(evArgs.ErrorMessage); } } }
public void GoToScriptLine(ZoomToFileEventArgs evArgs) { if (evArgs.ZoomType == ZoomToFileZoomType.ZoomToCharacterPosition) { scintillaEditor.GoToPosition(evArgs.ZoomPosition); } else if (evArgs.ZoomType == ZoomToFileZoomType.ZoomToLineNumber) { scintillaEditor.GoToLine(evArgs.ZoomPosition); } scintillaEditor.Focus(); if (evArgs.IsDebugExecutionPoint) { scintillaEditor.ShowCurrentExecutionPoint(evArgs.ZoomPosition); if (evArgs.ErrorMessage != null) { scintillaEditor.ShowErrorMessagePopup(evArgs.ErrorMessage); } } }
private void timer_Tick(object sender, EventArgs e) { ((Timer)sender).Stop(); ((Timer)sender).Dispose(); ZoomToFileEventArgs evArgs = new ZoomToFileEventArgs(_timerScriptName, ZoomToFileZoomType.ZoomToText, 0, _timerSearchForText, false, null, true); evArgs.SelectLine = false; evArgs.ZoomToLineAfterOpeningBrace = true; OnZoomToFile(evArgs); }
public void ZoomToFile(string fileName, string function) { if (OnZoomToFile != null) { ZoomToFileEventArgs evArgs = new ZoomToFileEventArgs(fileName, ZoomToFileZoomType.ZoomToText, 0, "function " + function + "(", false, null, true); evArgs.SelectLine = false; evArgs.ZoomToLineAfterOpeningBrace = true; OnZoomToFile(evArgs); } }
public void ZoomToFile(string fileName, ZoomToFileZoomType zoomType, int zoomPosition, bool isDebugExecutionPoint, bool selectWholeLine, string errorMessage, bool activateEditor) { if (OnZoomToFile != null) { if (this.InvokeRequired) { this.Invoke(new ZoomToFileDelegate(ZoomToFile), fileName, zoomType, zoomPosition, isDebugExecutionPoint, selectWholeLine, errorMessage, activateEditor); } else { ZoomToFileEventArgs evArgs = new ZoomToFileEventArgs(fileName, zoomType, zoomPosition, null, isDebugExecutionPoint, errorMessage, activateEditor); evArgs.SelectLine = selectWholeLine; OnZoomToFile(evArgs); } } }