Exemplo n.º 1
0
        public static Dictionary <string, LotteryTypes> getListFromXml(XmlNode node)
        {
            Dictionary <string, LotteryTypes> ret = new Dictionary <string, LotteryTypes>();


            XmlNodeList nodes = node.SelectNodes("Lottery");

            foreach (XmlNode sn in nodes)
            {
                LotteryTypes lt     = new LotteryTypes();
                string       strKey = XmlUtil.GetSubNodeText(sn, "@id");
                lt.LoadXml(sn);
                ret.Add(strKey, lt);
            }
            return(ret);
        }