Inheritance: Microsoft.VisualStudio.Project.SingleFileGeneratorNodeProperties
示例#1
0
 protected override NodeProperties CreatePropertiesObject()
 {
     XSharpFileNodeProperties properties = new XSharpFileNodeProperties(this);
     properties.OnCustomToolChanged += new EventHandler<HierarchyNodeEventArgs>(OnCustomToolChanged);
     properties.OnCustomToolNameSpaceChanged += new EventHandler<HierarchyNodeEventArgs>(OnCustomToolNameSpaceChanged);
     return properties;
 }
示例#2
0
        /// <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);
            }
        }