Ejemplo n.º 1
0
        //=====================================================================

        /// <summary>
        /// This is used to update the namespace summary information
        /// </summary>
        public void UpdateNamespaceSummaryInfo()
        {
            int excluded, withSummary;

            if (namespaceSummaries == null || namespaceSummaries.Count == 0)
            {
                lblNamespaceSummaryState.Content = "No summaries are defined in the project";
            }
            else
            {
                excluded    = namespaceSummaries.Count(n => !n.IsDocumented);
                withSummary = namespaceSummaries.Count(n => !String.IsNullOrEmpty(n.Summary));
                lblNamespaceSummaryState.Content = $"{withSummary} with summary, {excluded} excluded in the project";
            }
        }
        //=====================================================================

        /// <summary>
        /// This is used to update the namespace summary information
        /// </summary>
        public void UpdateNamespaceSummaryInfo()
        {
            int excluded, withSummary;

            if (namespaceSummaries.Count == 0)
            {
                lblNamespaceSummaryState.Text = "No summaries are defined in the project";
            }
            else
            {
                excluded    = namespaceSummaries.Count(n => !n.IsDocumented);
                withSummary = namespaceSummaries.Count(n => !String.IsNullOrEmpty(n.Summary));

                lblNamespaceSummaryState.Text = String.Format(CultureInfo.CurrentCulture,
                                                              "{0} with summary, {1} excluded in the project", withSummary, excluded);
            }
        }