private void RegisterMetricMethodsCalled() { var MetricMethodsCalled = new DevExpress.CodeRush.Extensions.CodeMetricProvider(components); ((System.ComponentModel.ISupportInitialize)(MetricMethodsCalled)).BeginInit(); MetricMethodsCalled.ProviderName = "MetricMethodsCalled"; // Should be Unique MetricMethodsCalled.DisplayName = "Methods Called"; MetricMethodsCalled.GetMetricValue += MetricMethodsCalled_GetMetricValue; ((System.ComponentModel.ISupportInitialize)(MetricMethodsCalled)).EndInit(); }
private void registerReferencesMetric() { var ReferencesMetric = new DevExpress.CodeRush.Extensions.CodeMetricProvider(components); ((System.ComponentModel.ISupportInitialize)(ReferencesMetric)).BeginInit(); ReferencesMetric.ProviderName = "ReferencesMetric"; // Should be Unique ReferencesMetric.DisplayName = "References"; ReferencesMetric.GetMetricValue += ReferencesMetric_GetMetricValue; ((System.ComponentModel.ISupportInitialize)(ReferencesMetric)).EndInit(); }