/// <inheritdoc /> protected override bool BindControlValue(System.Windows.Forms.Control control) { ProjectProperty projProp; #if !STANDALONEGUI if (this.ProjectMgr == null) { return(false); } #else if (this.CurrentProject == null) { return(false); } #endif if (control.Name == "dgvHelpAttributes") { attributesChanged = false; #if !STANDALONEGUI attributes = new MSHelpAttrCollection( ((SandcastleBuilderProjectNode)base.ProjectMgr).SandcastleProject); projProp = this.ProjectMgr.BuildProject.GetProperty("HelpAttributes"); #else attributes = new MSHelpAttrCollection(this.CurrentProject); projProp = this.CurrentProject.MSBuildProject.GetProperty("HelpAttributes"); #endif if (projProp != null && !String.IsNullOrEmpty(projProp.UnevaluatedValue)) { attributes.FromXml(projProp.UnevaluatedValue); } dgvHelpAttributes.DataSource = attributes; return(true); } return(false); }
/// <inheritdoc /> protected override bool BindControlValue(System.Windows.Forms.Control control) { ProjectProperty projProp; #if !STANDALONEGUI if(this.ProjectMgr == null) return false; #else if(this.CurrentProject == null) return false; #endif if(control.Name == "dgvHelpAttributes") { attributesChanged = false; #if !STANDALONEGUI attributes = new MSHelpAttrCollection( ((SandcastleBuilderProjectNode)base.ProjectMgr).SandcastleProject); projProp = this.ProjectMgr.BuildProject.GetProperty("HelpAttributes"); #else attributes = new MSHelpAttrCollection(this.CurrentProject); projProp = this.CurrentProject.MSBuildProject.GetProperty("HelpAttributes"); #endif if(projProp != null && !String.IsNullOrEmpty(projProp.UnevaluatedValue)) attributes.FromXml(projProp.UnevaluatedValue); dgvHelpAttributes.DataSource = attributes; return true; } return false; }