/// <inheritdoc />
        protected override bool BindControlValue(Control control)
        {
            ProjectProperty projProp;

#if !STANDALONEGUI
            if (this.ProjectMgr == null)
            {
                return(false);
            }
#else
            if (this.CurrentProject == null)
            {
                return(false);
            }
#endif

            if (control.Name == "lblNamespaceSummaryState")
            {
                // Pass it the Sandcastle project instance as we use the designer dialog to edit the collection
                // and it obtains it from the collection to do the required partial build.
#if !STANDALONEGUI
                namespaceSummaries = new NamespaceSummaryItemCollection
                {
                    Project = ((SandcastleBuilderProjectNode)base.ProjectMgr).SandcastleProject
                };

                projProp = this.ProjectMgr.BuildProject.GetProperty("NamespaceSummaries");
#else
                namespaceSummaries = new NamespaceSummaryItemCollection()
                {
                    Project = base.CurrentProject
                };

                projProp = this.CurrentProject.MSBuildProject.GetProperty("NamespaceSummaries");
#endif
                summariesChanged = false;

                if (projProp != null && !String.IsNullOrEmpty(projProp.UnevaluatedValue))
                {
                    namespaceSummaries.FromXml(projProp.UnevaluatedValue);
                }

                this.UpdateNamespaceSummaryInfo();
                return(true);
            }

            return(false);
        }
        /// <inheritdoc />
        protected override bool BindControlValue(Control control)
        {
            ProjectProperty projProp;

#if !STANDALONEGUI
            if(this.ProjectMgr == null)
                return false;
#else
            if(this.CurrentProject == null)
                return false;
#endif

            if(control.Name == "lblNamespaceSummaryState")
            {
                // Pass it the Sandcastle project instance as we use the designer dialog to edit the collection
                // and it obtains it from the collection to do the required partial build.
#if !STANDALONEGUI
                namespaceSummaries = new NamespaceSummaryItemCollection(
                    ((SandcastleBuilderProjectNode)base.ProjectMgr).SandcastleProject);
                summariesChanged = false;

                projProp = this.ProjectMgr.BuildProject.GetProperty("NamespaceSummaries");
#else
                namespaceSummaries = new NamespaceSummaryItemCollection(base.CurrentProject);
                summariesChanged = false;

                projProp = this.CurrentProject.MSBuildProject.GetProperty("NamespaceSummaries");
#endif
                if(projProp != null && !String.IsNullOrEmpty(projProp.UnevaluatedValue))
                    namespaceSummaries.FromXml(projProp.UnevaluatedValue);

                this.UpdateNamespaceSummaryInfo();
                return true;
            }

            return false;
        }