protected override NodeProperties CreatePropertiesObject() { XSharpFileNodeProperties properties = new XSharpFileNodeProperties(this); properties.OnCustomToolChanged += new EventHandler<HierarchyNodeEventArgs>(OnCustomToolChanged); properties.OnCustomToolNameSpaceChanged += new EventHandler<HierarchyNodeEventArgs>(OnCustomToolNameSpaceChanged); return properties; }
/// <summary> /// Creates an object derived from <see cref="NodeProperties"/> that will be used to expose /// properties specific for this object to the property browser. /// </summary> /// <returns>A new <see cref="NodeProperties"/> object.</returns> protected override NodeProperties CreatePropertiesObject() { if (IsNonMemberItem) { return(new XFileNodeNonMemberProperties(this)); } else if (!String.IsNullOrEmpty(this.ItemNode.GetMetadata("Link"))) { return(new XSharpLinkedFileNodeProperties(this)); } //else if (this.IsVoBinary) //{ // return new XSharpVOBinaryFileNodeProperties(this); //} else { XSharpFileNodeProperties xprops = new XSharpFileNodeProperties(this); xprops.IsDependent = IsDependent; xprops.OnCustomToolChanged += new EventHandler <HierarchyNodeEventArgs>(OnCustomToolChanged); xprops.OnCustomToolNameSpaceChanged += new EventHandler <HierarchyNodeEventArgs>(OnCustomToolNameSpaceChanged); return(xprops); } }