protected void ReadStationStocks(XElement xml) { if (xml == null) { return; } this.StationStocks.Clear(); IEnumerable <XElement> stations = xml.Elements("station"); foreach (XElement station in stations) { ItemStationStock entry = new ItemStationStock(station); this.StationStocks.Add(entry); } }
protected void ReadStationStocks(XElement xml) { if (xml == null) { return; } this.StationStocks.Clear(); IEnumerable<XElement> stations = xml.Elements("station"); foreach (XElement station in stations) { ItemStationStock entry = new ItemStationStock(station); this.StationStocks.Add(entry); } }