Пример #1
0
        private void IssuesChanged()
        {
            int warnings = 0;
            int errors   = 0;
            int messages = 0;

            foreach (Issue issue in _issuesAnalyzerService.AnalyzerContext.Issues)
            {
                if (issue.Severity == IssueSeverity.Message)
                {
                    messages++;
                }
                if (issue.Severity == IssueSeverity.Warning)
                {
                    warnings++;
                }
                if (issue.Severity == IssueSeverity.Error)
                {
                    errors++;
                }
            }

            Errors   = errors;
            Warnings = warnings;
            Messages = messages;

            Issues.Refresh();
        }