Example #1
0
 protected void SearchIcon()
 {
     if (string.IsNullOrEmpty(keywords))
     {
         DisplayIconList = IconList.ToList();
     }
     else
     {
         DisplayIconList = IconList.Where(icon => icon.Contains(keywords)).ToList();
     }
 }
 private void FilterData()
 {
     if (!string.IsNullOrEmpty(FilterText))
     {
         Icons = IconList.Where(a => (a.Name.ToString().ToLower().Contains(FilterText.ToLower())));
         //Icons = Icons.Where(a => (a.Name.ToString().Contains(FilterText)) || (a.Description.ToString().Contains(FilterText))).ToList();
     }
     else
     {
         Icons = IconList;
     }
 }