Example #1
0
        private static List <CustomShellType.TreeInfo> ReadTreeInfoNode(XmlNode child)
        {
            var infoList = new List <CustomShellType.TreeInfo>();

            foreach (XmlNode c in child.ChildNodes)
            {
                if (c.Name == "node")
                {
                    var info = new CustomShellType.TreeInfo();
                    foreach (XmlNode cc in c.ChildNodes)
                    {
                        if (cc.Name == "path")
                        {
                            info.Path = cc.InnerText;
                        }
                        else if (cc.Name == "type")
                        {
                            info.Type = cc.InnerText;
                        }
                        else if (cc.Name == "info")
                        {
                            info.Info = cc.InnerText;
                        }
                    }
                    infoList.Add(info);
                }
            }
            return(infoList);
        }
 private static List<CustomShellType.TreeInfo> ReadTreeInfoNode(XmlNode child)
 {
     var infoList = new List<CustomShellType.TreeInfo>();
     foreach (XmlNode c in child.ChildNodes)
     {
         if (c.Name == "node")
         {
             var info = new CustomShellType.TreeInfo();
             foreach (XmlNode cc in c.ChildNodes)
             {
                 if (cc.Name == "path")
                 {
                     info.Path = cc.InnerText;
                 }
                 else if (cc.Name == "type")
                 {
                     info.Type = cc.InnerText;
                 }
                 else if (cc.Name == "info")
                 {
                     info.Info = cc.InnerText;
                 }
             }
             infoList.Add(info);
         }
     }
     return infoList;
 }