Exemple #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);
        }
 public XmlCollectionBase( XmlNode objXmlNode, DnnTree objTreeControl )
 {
     m_objTree = objTreeControl;
     InnerXMLNode = objXmlNode;
     InnerXMLDoc = InnerXMLNode.OwnerDocument;
 }
Exemple #3
0
 internal void SetDNNTree(DnnTree objTree)
 {
     m_objDNNTree = objTree;
 }
Exemple #4
0
 public void RenderTree(HtmlTextWriter writer, DnnTree tree)
 {
     _tree = tree;
     RenderControl(writer);
 }
Exemple #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;
 }
 public override void Initialize()
 {
     Tree = new DnnTree();
     Tree.ID = _controlID;
     Tree.NodeClick += DNNTree_NodeClick;
     Tree.PopulateOnDemand += DNNTree_PopulateOnDemand;
 }
 //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 )
 {
 }
Exemple #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;
 }
Exemple #10
0
 public XmlCollectionBase(XmlNode objXmlNode, DnnTree objTreeControl)
 {
     m_objTree    = objTreeControl;
     InnerXMLNode = objXmlNode;
     InnerXMLDoc  = InnerXMLNode.OwnerDocument;
 }
Exemple #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;
 }
Exemple #12
0
 internal TreeNode(Control ctlOwner)
 {
     m_objDNNTree = (DnnTree)ctlOwner;
 }
Exemple #13
0
 internal TreeNode(XmlNode objXmlNode, Control ctlOwner) : base(objXmlNode)
 {
     m_objDNNTree = (DnnTree)ctlOwner;
 }
        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 );
        }
 /// <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;
 }
Exemple #16
0
 internal void SetDNNTree( DnnTree objTree )
 {
     m_objDNNTree = objTree;
 }
 /// <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;
 }
Exemple #18
0
 internal TreeNode( Control ctlOwner )
 {
     m_objDNNTree = (DnnTree)ctlOwner;
 }
Exemple #19
0
 public TreeNodeEnumerator(XmlNode objRoot, DnnTree objControl)
 {
     m_objXmlNode = objRoot;
     m_objDNNTree = objControl;
     m_intCursor  = -1;
 }
 public DNNNodeCollection( XmlNode objXmlNode, DnnTree objTreeControl ) : base( objXmlNode, objTreeControl )
 {
 }
Exemple #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)
 {
 }
Exemple #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;
 }
Exemple #23
0
 public DNNNodeCollection(XmlNode objXmlNode, DnnTree objTreeControl) : base(objXmlNode, objTreeControl)
 {
 }
Exemple #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;
 }
 //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;
 }
 public TreeNodeEnumerator( XmlNode objRoot, DnnTree objControl )
 {
     m_objXmlNode = objRoot;
     m_objDNNTree = objControl;
     m_intCursor = -1;
 }
 public void RenderTree( HtmlTextWriter writer, DnnTree tree )
 {
     _tree = tree;
     RenderControl( writer );
 }