예제 #1
0
        public List <Weather> ReadLocalWeathers()
        {
            WeatherXmlReader _weatherXmlReader = new WeatherXmlReader();
            var filePath = GlobalInfo.GetInstance().ProjectPath + "\\" + ConstVar.DataBaseStr + "\\" + ConstVar.WeatherConditioFileName;
            var weas     = _weatherXmlReader.ReadLocal(filePath);

            if (weas == null)
            {
                weas = new List <Weather>();
            }
            return(weas);
        }