Esempio n. 1
0
        protected override void Deserialize(XmlNode node)
        {
            base.Deserialize(node);
            foreach (XmlNode childNode in node.ChildNodes)
            {
                switch (childNode.Name)
                {
                case "SlideHeader":
                    SlideHeader = childNode.InnerText;
                    break;

                case "Demo":
                    Demo.Clear();
                    foreach (XmlNode valueNode in childNode.ChildNodes)
                    {
                        Demo.Add(valueNode.InnerText);
                    }
                    break;

                case "Income":
                    Income.Clear();
                    foreach (XmlNode valueNode in childNode.ChildNodes)
                    {
                        Income.Add(valueNode.InnerText);
                    }
                    break;

                case "Geographic":
                    Geographic.Clear();
                    foreach (XmlNode valueNode in childNode.ChildNodes)
                    {
                        Geographic.Add(valueNode.InnerText);
                    }
                    break;
                }
            }
        }