Exemplo n.º 1
0
 public void LoadFromXml(XmlElement xml)
 {
     if (xml.HasAttribute("title"))
     {
         m_title = xml.GetAttribute("title");
     }
     foreach (XmlElement chx in xml.SelectNodes("Node"))
     {
         var node = new AppTreeTplNode(this);
         node.LoadFromXml(chx);
         m_children.Add(node);
     }
     foreach (XmlElement chx in xml.SelectNodes("Page"))
     {
         var pg = new AppPage();
         pg.LoadFromXml(chx);
         Pages.Add(pg);
     }
     if (xml.FindElement("Icon") != null)
     {
         m_icon = IOTool.ImageFromText(xml.FindElement("Icon").InnerText);
     }
 }