Пример #1
0
        public void SetContent(IEnumerable <CodeInspectionResultGridViewItem> inspectionResults)
        {
            var results = inspectionResults.ToList();

            CodeIssuesGridView.DataSource = new BindingList <CodeInspectionResultGridViewItem>(results);
            CodeIssuesGridView.Refresh();
        }
Пример #2
0
        public void SetContent(IEnumerable <CodeInspectionResultGridViewItem> inspectionResults)
        {
            var results = inspectionResults.ToList();

            StatusLabel.Text = string.Format("{0} issue" + (results.Count > 1 ? "s" : string.Empty), results.Count);

            CodeIssuesGridView.DataSource = new BindingList <CodeInspectionResultGridViewItem>(results);
            CodeIssuesGridView.Refresh();
        }