Ejemplo n.º 1
0
 void _hotSearchFactory_httpSucessHandler(object sender, HttpFactoryArgs <List <HotSearchInfo> > args)
 {
     if (args.Result == null ||
         args.Result.Count <= 0)
     {
         return;
     }
     _hotSearchInfos          = new List <HotSearchInfo>();
     _hotSearchInfosByDisplay = new List <HotSearchInfo>();
     for (int i = 0; i < (args.Result.Count >= 6 ? 6 : args.Result.Count); i++)
     {
         HotSearchInfo itemCopy = new HotSearchInfo(args.Result[i].Type, args.Result[i].Count.ToString(), args.Result[i].Key);
         _hotSearchInfos.Add(args.Result[i]);
         _hotSearchInfosByDisplay.Add(itemCopy);
     }
     SortByCharLenght();
     InitElement();
 }
Ejemplo n.º 2
0
 void xHotSearchBar_ItemTap(object sender, HotSearchInfo hotSearchInfo)
 {
     ProgramSearch.SetKeyAndSearch(hotSearchInfo.Key);
 }