コード例 #1
0
        public XmlCollectionBase(string strNamespace, DnnTree objTreeControl)
        {
            m_objTree    = objTreeControl;
            InnerXMLDoc  = new XmlDocument();
            InnerXMLNode = InnerXMLDoc.CreateNode(XmlNodeType.Element, "root", "");

            XmlAttribute objAttr = InnerXMLDoc.CreateAttribute("id");

            objAttr.Value = strNamespace;
            InnerXMLNode.Attributes.Append(objAttr);

            InnerXMLDoc.AppendChild(InnerXMLNode);
        }
コード例 #2
0
 public XmlCollectionBase( XmlNode objXmlNode, DnnTree objTreeControl )
 {
     m_objTree = objTreeControl;
     InnerXMLNode = objXmlNode;
     InnerXMLDoc = InnerXMLNode.OwnerDocument;
 }
コード例 #3
0
 internal void SetDNNTree(DnnTree objTree)
 {
     m_objDNNTree = objTree;
 }
コード例 #4
0
 public void RenderTree(HtmlTextWriter writer, DnnTree tree)
 {
     _tree = tree;
     RenderControl(writer);
 }
コード例 #5
0
 /// <summary>
 /// Loads node collection based off of XML string
 /// </summary>
 /// <param name="strXML">XML String</param>
 /// <param name="strXSLFile">XSL FileName.  Leave empty if no transform needed</param>
 /// <param name="objControl">DNN Tree control</param>
 /// <remarks>
 /// </remarks>
 /// <history>
 ///     [Jon Henning]	12/22/2004	Created
 /// </history>
 public TreeNodeCollection(string strXML, string strXSLFile, DnnTree objControl) : base(strXML, strXSLFile)
 {
     m_objDNNTree = objControl;
 }
コード例 #6
0
 public override void Initialize()
 {
     Tree = new DnnTree();
     Tree.ID = _controlID;
     Tree.NodeClick += DNNTree_NodeClick;
     Tree.PopulateOnDemand += DNNTree_PopulateOnDemand;
 }
コード例 #7
0
 //In order to maintain backwards compatibility with the tree from versions before 3.2 we need to allow the
 //baseclass to return the treenodeenumerator, thus the need to pass the tree to the new base collection class
 //Yes, this is a hack!
 public DNNNodeCollection( string strNamespace, DnnTree objTreeControl ) : base( strNamespace, objTreeControl )
 {
 }
コード例 #8
0
ファイル: TreeNode.cs プロジェクト: huayang912/cs-dotnetnuke
 internal TreeNode( XmlNode objXmlNode, Control ctlOwner ) : base( objXmlNode )
 {
     m_objDNNTree = (DnnTree)ctlOwner;
 }
コード例 #9
0
 /// <summary>
 /// Constructor to call when creating a Root Node
 /// </summary>
 /// <param name="strNamespace">Namespace of node hierarchy</param>
 /// <param name="objControl">DnnTree control associated to TreeNodeCollection</param>
 /// <remarks>
 /// </remarks>
 /// <history>
 /// 	[Jon Henning]	12/22/2004	Created
 /// </history>
 public TreeNodeCollection( string strNamespace, DnnTree objControl ) : base( strNamespace, objControl )
 {
     m_objDNNTree = objControl;
 }
コード例 #10
0
 public XmlCollectionBase(XmlNode objXmlNode, DnnTree objTreeControl)
 {
     m_objTree    = objTreeControl;
     InnerXMLNode = objXmlNode;
     InnerXMLDoc  = InnerXMLNode.OwnerDocument;
 }
コード例 #11
0
 //In order to maintain backwards compatibility with the tree from versions before 3.2 we need to allow the
 //baseclass to return the treenodeenumerator, thus the need to pass the tree to the new base collection class
 //Yes, this is a hack!
 protected XmlCollectionBase(DnnTree objTreeControl)
 {
     m_objTree = objTreeControl;
 }
コード例 #12
0
 internal TreeNode(Control ctlOwner)
 {
     m_objDNNTree = (DnnTree)ctlOwner;
 }
コード例 #13
0
 internal TreeNode(XmlNode objXmlNode, Control ctlOwner) : base(objXmlNode)
 {
     m_objDNNTree = (DnnTree)ctlOwner;
 }
コード例 #14
0
        public XmlCollectionBase( string strNamespace, DnnTree objTreeControl )
        {
            m_objTree = objTreeControl;
            InnerXMLDoc = new XmlDocument();
            InnerXMLNode = InnerXMLDoc.CreateNode( XmlNodeType.Element, "root", "" );

            XmlAttribute objAttr = InnerXMLDoc.CreateAttribute( "id" );
            objAttr.Value = strNamespace;
            InnerXMLNode.Attributes.Append( objAttr );

            InnerXMLDoc.AppendChild( InnerXMLNode );
        }
コード例 #15
0
 /// <summary>
 /// Loads node collection based off of XML string
 /// </summary>
 /// <param name="strXML">XML String</param>
 /// <param name="strXSLFile">XSL FileName.  Leave empty if no transform needed</param>
 /// <param name="objControl">DNN Tree control</param>
 /// <remarks>
 /// </remarks>
 /// <history>
 /// 	[Jon Henning]	12/22/2004	Created
 /// </history>
 public TreeNodeCollection( string strXML, string strXSLFile, DnnTree objControl ) : base( strXML, strXSLFile )
 {
     m_objDNNTree = objControl;
 }
コード例 #16
0
ファイル: TreeNode.cs プロジェクト: huayang912/cs-dotnetnuke
 internal void SetDNNTree( DnnTree objTree )
 {
     m_objDNNTree = objTree;
 }
コード例 #17
0
 /// <summary>
 /// Constructor for all nodes that are not the root.
 /// </summary>
 /// <param name="objXmlNode">Node whose children will be exposed by this class</param>
 /// <param name="objControl">DNN Tree control</param>
 /// <remarks>
 /// </remarks>
 /// <history>
 /// 	[Jon Henning]	12/22/2004	Created
 /// </history>
 public TreeNodeCollection( XmlNode objXmlNode, DnnTree objControl ) : base( objXmlNode, objControl ) //, ByVal objControl As Control)
 {
     m_objDNNTree = objControl;
 }
コード例 #18
0
ファイル: TreeNode.cs プロジェクト: huayang912/cs-dotnetnuke
 internal TreeNode( Control ctlOwner )
 {
     m_objDNNTree = (DnnTree)ctlOwner;
 }
コード例 #19
0
 public TreeNodeEnumerator(XmlNode objRoot, DnnTree objControl)
 {
     m_objXmlNode = objRoot;
     m_objDNNTree = objControl;
     m_intCursor  = -1;
 }
コード例 #20
0
 public DNNNodeCollection( XmlNode objXmlNode, DnnTree objTreeControl ) : base( objXmlNode, objTreeControl )
 {
 }
コード例 #21
0
 //In order to maintain backwards compatibility with the tree from versions before 3.2 we need to allow the
 //baseclass to return the treenodeenumerator, thus the need to pass the tree to the new base collection class
 //Yes, this is a hack!
 public DNNNodeCollection(string strNamespace, DnnTree objTreeControl) : base(strNamespace, objTreeControl)
 {
 }
コード例 #22
0
 /// <summary>
 /// Constructor to call when creating a Root Node
 /// </summary>
 /// <param name="strNamespace">Namespace of node hierarchy</param>
 /// <param name="objControl">DnnTree control associated to TreeNodeCollection</param>
 /// <remarks>
 /// </remarks>
 /// <history>
 ///     [Jon Henning]	12/22/2004	Created
 /// </history>
 public TreeNodeCollection(string strNamespace, DnnTree objControl) : base(strNamespace, objControl)
 {
     m_objDNNTree = objControl;
 }
コード例 #23
0
 public DNNNodeCollection(XmlNode objXmlNode, DnnTree objTreeControl) : base(objXmlNode, objTreeControl)
 {
 }
コード例 #24
0
 /// <summary>
 /// Constructor for all nodes that are not the root.
 /// </summary>
 /// <param name="objXmlNode">Node whose children will be exposed by this class</param>
 /// <param name="objControl">DNN Tree control</param>
 /// <remarks>
 /// </remarks>
 /// <history>
 ///     [Jon Henning]	12/22/2004	Created
 /// </history>
 public TreeNodeCollection(XmlNode objXmlNode, DnnTree objControl) : base(objXmlNode, objControl)     //, ByVal objControl As Control)
 {
     m_objDNNTree = objControl;
 }
コード例 #25
0
 //In order to maintain backwards compatibility with the tree from versions before 3.2 we need to allow the
 //baseclass to return the treenodeenumerator, thus the need to pass the tree to the new base collection class
 //Yes, this is a hack!
 protected XmlCollectionBase( DnnTree objTreeControl )
 {
     m_objTree = objTreeControl;
 }
コード例 #26
0
 public TreeNodeEnumerator( XmlNode objRoot, DnnTree objControl )
 {
     m_objXmlNode = objRoot;
     m_objDNNTree = objControl;
     m_intCursor = -1;
 }
コード例 #27
0
 public void RenderTree( HtmlTextWriter writer, DnnTree tree )
 {
     _tree = tree;
     RenderControl( writer );
 }