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); } }
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); } }