Esempio n. 1
0
        private void FillControls()
        {
            string codeElementTypePlural = codeElementsTypePlurals[codeElementType];
            string parentCodeElementType = codeElementsTypePrecedences[codeElementType];

            this.lblMetricName.Text            = metricResumedName;
            this.lblCodeElementName.Text       = codeElementName;
            this.lblCodeElementType.Text       = codeElementType;
            this.lblParentCodeElementName.Text = parentCodeElementName;
            this.lblParentCodeElementType.Text = parentCodeElementType;
            this.lblAssemblyName.Text          = assemblyName;

            FillMetricDescriptionRTFBox(metricFullName, metricDescription);

            tabParentCondeElement.Text = "All " + codeElementTypePlural + " in " + parentCodeElementName;
            if (codeElementType == "Assembly")
            {
                tabctlMetricStatistics.TabPages.Remove(tabAsemblyName);
            }
            else
            {
                tabAsemblyName.Text = "All " + codeElementTypePlural + " in " + assemblyName;
            }
            Type metricsType = Type.GetType(this.metricType);

            Type[] types = new Type[] { metricsType };
            GenericsHelper.InvokeInstanceGenericMethod(this, this.GetType().FullName, "FillBaseStatistics", types, null);

            FillStatisticChartSelector();
        }
Esempio n. 2
0
 public object GetCodeElementMetricValue(object codeElement, Type codeElementType, NDependMetricDefinition codeElementMetricDefinition)
 {
     Type[]   genericTypes     = new Type[] { codeElementType, Type.GetType(codeElementMetricDefinition.NDependMetricType) };
     object[] methodParameters = new object[] { codeElement, codeElementMetricDefinition };
     return(GenericsHelper.InvokeInstanceGenericMethod(this, this.GetType().FullName, "GetGenericCodeElementMetricValue", genericTypes, methodParameters));
 }