/// <summary> /// Binds Pipeline property search results to the view /// </summary> /// <param name="query">Object describing the search</param> internal void Bind(GoPipelineSearch query) { GoPipelineSearchResultSet results; try { results = query.Refresh(); } catch (Exception e) { TraceLog.Exception(new StackFrame().GetMethod().Name, e); MessageBox.Show(string.Format(@"{0}\r\n\nHost: {1}\r\nPipeline: {2}\r\nStage: {3}\r\nJob: {4}", VisualStudio.Resources.PipelineSearchError, query.Host, query.Pipeline, query.Stage, query.Job)); return; } grid.Items.Clear(); foreach (GoPipelineSearchResultRow result in results) { if (grid.Items.Add(result) >= 0) { currentResultRow = result; continue; } TraceLog.WriteLine(new StackFrame().GetMethod().Name, "Adding GoPropertiesSearchResult to grid object failed."); TraceLog.WriteLine(new StackFrame().GetMethod().Name, string.Format("{0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},{12}", result.Agent, result.JobId, result.JobDuration, result.JobResult, result.PipelineLabel, result.PipelineLabel, result.StageCounter, result.Scheduled, result.Assigned, result.Preparing, result.Building, result.Completing, result.Completed)); break; } }
/// <summary> /// Binds Pipeline property search results to the view /// </summary> /// <param name="query">Object describing the search</param> internal void Bind(GoPipelineSearch query) { GoPipelineSearchResultSet results; try { results = query.Refresh(); } catch (Exception e) { TraceLog.Exception(new StackFrame().GetMethod().Name, e); MessageBox.Show(string.Format(@"{0}\r\n\nHost: {1}\r\nPipeline: {2}\r\nStage: {3}\r\nJob: {4}", VisualStudio.Resources.PipelineSearchError, query.Host, query.Pipeline, query.Stage, query.Job)); return; } grid.Items.Clear(); foreach (GoPipelineSearchResultRow result in results) { if (grid.Items.Add(result) >= 0) { currentResultRow = result; continue; } TraceLog.WriteLine(new StackFrame().GetMethod().Name, "Adding GoPropertiesSearchResult to grid object failed."); TraceLog.WriteLine(new StackFrame().GetMethod().Name, string.Format("{0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},{12}", result.Agent, result.JobId, result.JobDuration, result.JobResult, result.PipelineLabel, result.PipelineLabel, result.StageCounter, result.Scheduled, result.Assigned, result.Preparing, result.Building, result.Completing, result.Completed)); break; } }
/// <summary> /// Bind data to the ToolPaneWindow's controls /// </summary> internal void Bind(GoPipelineSearch query) { _control.Bind(query); }
/// <summary> /// Bind data to the ToolPaneWindow's controls /// </summary> internal void Bind(GoPipelineSearch query) { _control.Bind(query); }