Example #1
0
        protected void ReadProducers(XElement xml)
        {
            if (xml == null)
            {
                return;
            }

            this.Producers.Clear();
            IEnumerable <XElement> stations = xml.Elements("station");

            foreach (XElement station in stations)
            {
                ItemProducer entry = new ItemProducer(station);
                this.Producers.Add(entry);
            }
        }
Example #2
0
        protected void ReadProducers(XElement xml)
        {
            if (xml == null)
            {
                return;
            }

            this.Producers.Clear();
            IEnumerable<XElement> stations = xml.Elements("station");
            foreach (XElement station in stations)
            {
                ItemProducer entry = new ItemProducer(station);
                this.Producers.Add(entry);
            }
        }