public void LoadHHIData(StorageFile dataFile)
        {
            var document = new XmlDocument();

            document.Load(dataFile.LocalPath);

            var node = document.SelectSingleNode(@"./Income");

            if (node == null)
            {
                return;
            }
            foreach (XmlNode childNode in node.ChildNodes)
            {
                switch (childNode.Name)
                {
                case "HHI":
                    HHIs.Add(ListDataItem.FromXml(childNode));
                    break;
                }
            }
        }
        public void LoadCombinedData(StorageFile dataFile)
        {
            var document = new XmlDocument();

            document.Load(dataFile.LocalPath);

            var node = document.SelectSingleNode(@"/TargetCustomers");

            if (node == null)
            {
                return;
            }
            foreach (XmlNode childNode in node.ChildNodes)
            {
                switch (childNode.Name)
                {
                case "SlideHeader":
                    Headers.Add(ListDataItem.FromXml(childNode));
                    break;

                case "Demo":
                    Demos.Add(ListDataItem.FromXml(childNode));
                    break;

                case "HHI":
                    HHIs.Add(ListDataItem.FromXml(childNode));
                    break;

                case "Geography":
                    Geographies.Add(ListDataItem.FromXml(childNode));
                    break;
                }
            }

            CombinedList.AddRange(Demos);
            CombinedList.AddRange(HHIs);
            CombinedList.AddRange(Geographies);
        }
        private void Load()
        {
            var document = new XmlDocument();

            document.Load(ResourceManager.Instance.DataTargetCustomersFile.LocalPath);

            var node = document.SelectSingleNode(@"/TargetCustomers");

            if (node == null)
            {
                return;
            }
            foreach (XmlNode childNode in node.ChildNodes)
            {
                switch (childNode.Name)
                {
                case "SlideHeader":
                    foreach (XmlAttribute attribute in childNode.Attributes)
                    {
                        switch (attribute.Name)
                        {
                        case "Value":
                            if (!string.IsNullOrEmpty(attribute.Value))
                            {
                                Headers.Add(attribute.Value);
                            }
                            break;
                        }
                    }
                    break;

                case "Demo":
                    foreach (XmlAttribute attribute in childNode.Attributes)
                    {
                        switch (attribute.Name)
                        {
                        case "Value":
                            if (!string.IsNullOrEmpty(attribute.Value))
                            {
                                Demos.Add(attribute.Value);
                            }
                            break;
                        }
                    }
                    break;

                case "HHI":
                    foreach (XmlAttribute attribute in childNode.Attributes)
                    {
                        switch (attribute.Name)
                        {
                        case "Value":
                            if (!string.IsNullOrEmpty(attribute.Value))
                            {
                                HHIs.Add(attribute.Value);
                            }
                            break;
                        }
                    }
                    break;

                case "Geography":
                    foreach (XmlAttribute attribute in childNode.Attributes)
                    {
                        switch (attribute.Name)
                        {
                        case "Value":
                            if (!string.IsNullOrEmpty(attribute.Value))
                            {
                                Geographies.Add(attribute.Value);
                            }
                            break;
                        }
                    }
                    break;
                }
            }
        }