public void ReportResult(SearchResult result) { try { outputPad.ReportResult(result); } catch (Exception ex) { LoggingService.LogError("Error adding search result for file {0}:{1} to result pad:\n{2}", result.FileName, result.Offset, ex.ToString()); } }
protected virtual void OnReportResult(SearchResult result) { Runtime.RunInMainThread(delegate { try { outputPad.ReportResult(result); } catch (Exception ex) { LoggingService.LogError("Error adding search result for file {0}:{1} to result pad:\n{2}", result.FileName, result.Offset, ex.ToString()); } }); }