Example #1
0
        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);
            }
        }
Example #2
0
        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);
            }
        }