private void OnEndRunMetric(CodeMetricEventArgs e) { if (this.EndRunMetric != null) { this.EndRunMetric(this, e); } }
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); } }
private void OnBeginRunMetric(CodeMetricEventArgs e) { if (this.BeginRunMetric != null) { this.BeginRunMetric(this, e); } }
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 }); }
private void CodeMetricManager_BeginRunMetric(object sender, CodeMetricEventArgs e) { e.CodeMetric.Progress += new ComputationProgressEventHandler(this.CodeMetric_Progress); }