예제 #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
 internal TreeNode( XmlNode objXmlNode, Control ctlOwner ) : base( objXmlNode )
 {
     m_objDNNTree = (DnnTree)ctlOwner;
 }
 /// <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
 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
 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 );
 }