Пример #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);
            }
        }
Пример #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);
            }
        }