Exemplo n.º 1
0
        // public const string XMLNODE_LINK = "link"; // Later version"s will support link collections

        public static CReportItem CreateItemFromXMLNode(XmlNode aXmlNode)
        {
            CReportItem lResult = null;

            if (aXmlNode.Name == XMLNODE_FOLDER)
            {
                lResult = new CReportFolder(aXmlNode.Attributes["name"].Value);
            }
            else
            if (aXmlNode.Name == XMLNODE_REPORT)
            {
                lResult = new CReportFile(aXmlNode.Attributes["name"].Value, aXmlNode.Attributes["path"].Value);
            }
            else
            {
                lResult = new CReportItem(aXmlNode.Attributes["name"].Value);
            }

            return(lResult);
        }
Exemplo n.º 2
0
 public void Orphanize(CReportFolder aNewParent)
 {
     setParentDirectly(aNewParent);
 }
Exemplo n.º 3
0
        // public const string XMLNODE_LINK = "link"; // Later version"s will support link collections
        public static CReportItem CreateItemFromXMLNode(XmlNode aXmlNode)
        {
            CReportItem lResult = null;

                    if (aXmlNode.Name == XMLNODE_FOLDER) {
                            lResult = new CReportFolder(aXmlNode.Attributes["name"].Value);
                        } else
                    if (aXmlNode.Name == XMLNODE_REPORT) {
                            lResult = new CReportFile(aXmlNode.Attributes["name"].Value, aXmlNode.Attributes["path"].Value);
                        } else
                    lResult = new CReportItem(aXmlNode.Attributes["name"].Value);

                    return lResult;
        }
Exemplo n.º 4
0
 public void Orphanize(CReportFolder aNewParent)
 {
     setParentDirectly(aNewParent);
 }