Example #1
0
        public XmlCollectionBase(string strNamespace, DotNetNuke.UI.WebControls.DNNTree objTreeControl)
        {
            m_objTree    = objTreeControl;
            InnerXMLDoc  = new System.Xml.XmlDocument();
            InnerXMLNode = InnerXMLDoc.CreateNode(XmlNodeType.Element, "root", "");

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

            InnerXMLDoc.AppendChild(InnerXMLNode);
        }
		//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(DotNetNuke.UI.WebControls.DNNTree objTreeControl)
		{
			m_objTree = objTreeControl;
		}
		public XmlCollectionBase(string strNamespace, DotNetNuke.UI.WebControls.DNNTree objTreeControl)
		{
			m_objTree = objTreeControl;
			InnerXMLDoc = new System.Xml.XmlDocument();
			InnerXMLNode = InnerXMLDoc.CreateNode(XmlNodeType.Element, "root", "");

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

			InnerXMLDoc.AppendChild(InnerXMLNode);
		}
		public XmlCollectionBase(XmlNode objXmlNode, DotNetNuke.UI.WebControls.DNNTree objTreeControl)
		{
			m_objTree = objTreeControl;
			InnerXMLNode = objXmlNode;
			InnerXMLDoc = InnerXMLNode.OwnerDocument;
		}
Example #5
0
 public XmlCollectionBase(XmlNode objXmlNode, DotNetNuke.UI.WebControls.DNNTree objTreeControl)
 {
     m_objTree    = objTreeControl;
     InnerXMLNode = objXmlNode;
     InnerXMLDoc  = InnerXMLNode.OwnerDocument;
 }
Example #6
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(DotNetNuke.UI.WebControls.DNNTree objTreeControl)
 {
     m_objTree = objTreeControl;
 }