示例#1
0
        private void RaiseIssuesFoundEvent(IList <CodeInspectionResultBase> issues)
        {
            var handler = IssuesFound;

            if (handler == null)
            {
                return;
            }

            var args = new InspectorIssuesFoundEventArg(issues);

            handler(this, args);
        }
 private void OnIssuesFound(object sender, InspectorIssuesFoundEventArg e)
 {
     _issueCount = _issueCount + e.Issues.Count;
     var resource = _issueCount == 1
         ? RubberduckUI.CodeInspections_NumberOfIssues_Singular
         : RubberduckUI.CodeInspections_NumberOfIssues_Plural;
     _statusButton.Caption = string.Format(resource, _issueCount);
 }
 private void _inspector_IssuesFound(object sender, InspectorIssuesFoundEventArg e)
 {
     Interlocked.Add(ref _issues, e.Issues.Count);
     Control.Invoke((MethodInvoker) delegate
     {
         var newCount = _issues;
         Control.SetIssuesStatus(newCount);
     });
 }
示例#4
0
        private void OnIssuesFound(IList<CodeInspectionResultBase> issues)
        {
            var handler = IssuesFound;
            if (handler == null)
            {
                return;
            }

            var args = new InspectorIssuesFoundEventArg(issues);
            handler(this, args);
        }