Example #1
0
        public List<string> gzSceneryCityList = new List<string>(); //记录上有城市

        #endregion Fields

        #region Methods

        /// <summary>
        /// 初始化页面
        /// </summary>
        public void initPage()
        {
            //初始化左边导航
            GZCityDAO gzCityDAO = new GZCityDAO();
            gzCityList = gzCityDAO.Query();
            for (int i = 0; i < gzCityList.Count; i++)
            {
                if (!gzSceneryCityList.Contains(gzCityList[i].GZSceneryCity))
                {
                    gzSceneryCityList.Add(gzCityList[i].GZSceneryCity);
                }
            }
        }
Example #2
0
        /// <summary>
        /// 初始化页面
        /// </summary>
        public void initPage()
        {
            //初始化左边导航
            GZCityDAO gzCityDAO = new GZCityDAO();
            gzCityList = gzCityDAO.Query();
            for (int i = 0; i < gzCityList.Count; i++)
            {
                if (!gzSceneryCityList.Contains(gzCityList[i].GZSceneryCity))
                {
                    gzSceneryCityList.Add(gzCityList[i].GZSceneryCity);
                }
            }

            NativeCityDAO nativeCityDAO = new NativeCityDAO();
            natCityList = nativeCityDAO.Query();
            for (int i = 0; i < natCityList.Count; i++)
            {
                if (!natSceneryCityList.Contains(natCityList[i].NATSceneryCity))
                {
                    natSceneryCityList.Add(natCityList[i].NATSceneryCity);
                }
            }
        }