コード例 #1
0
 private void OnEndRunMetric(CodeMetricEventArgs e)
 {
     if (this.EndRunMetric != null)
     {
         this.EndRunMetric(this, e);
     }
 }
コード例 #2
0
        public void Analyze()
        {
            this.abortPending = false;

            try
            {
                this.OnBeginRun(EventArgs.Empty);
                foreach (CodeMetric codeMetric in this.CodeMetrics)
                {
                    if (!codeMetric.IsAbortPending())
                    {
                        CodeMetricEventArgs e = new CodeMetricEventArgs(codeMetric);
                        this.OnBeginRunMetric(e);
                        codeMetric.Analyze(this.Assemblies);
                        this.OnEndRunMetric(e);
                    }
                }
            }
            catch (Exception exception)
            {
                this.errorException = exception;
            }
            finally
            {
                this.OnEndRun(EventArgs.Empty);
            }
        }
コード例 #3
0
 private void OnBeginRunMetric(CodeMetricEventArgs e)
 {
     if (this.BeginRunMetric != null)
     {
         this.BeginRunMetric(this, e);
     }
 }
コード例 #4
0
 private void CodeMetricManager_EndRunMetric(object sender, CodeMetricEventArgs e)
 {
     e.CodeMetric.Progress -= new ComputationProgressEventHandler(this.CodeMetric_Progress);
     this.Invoke(new StatusBarUpdateCallback(this.StatusBarUpdate), new object[] { 100 });
 }
コード例 #5
0
 private void CodeMetricManager_BeginRunMetric(object sender, CodeMetricEventArgs e)
 {
     e.CodeMetric.Progress += new ComputationProgressEventHandler(this.CodeMetric_Progress);
 }