Пример #1
0
        private CityCategory GetCategoryEx(string indexs)
        {
            char[] arr = indexs.ToArray();

            CityCategory result = new CityCategory();

            result.Indexs = indexs;
            foreach (char item in arr)
            {
                result.SubItems.AddRange(GetGroup(item));
            }
            return(result);
        }
Пример #2
0
        private CityCategory GetCategoryHotCity(string indexs)
        {
            CityCategory result = new CityCategory();

            result.Indexs = indexs;

            var dicAllCitys = Agent.GetCitys().ToLookup(p => p.Key, p => p);

            foreach (var item in s_ListHotCity)
            {
                if (dicAllCitys.Contains(item))
                {
                    result.SubItems.AddRange(dicAllCitys[item]);
                }
            }

            return(result);
        }