public static void TrySelect(ListSelector selector, IEnumerable<string> strings)
 {
     if (!strings.Any()){
         return;
     }
     int index = -1;
     for (int i = 0; i < selector.Items.Count; i++){
         string x = (string) selector.Items[i];
         if (StringUtils.ContainsAll(x, strings)){
             index = i;
             break;
         }
     }
     if (index != -1){
         selector.SelectedItems.Add(selector.Items[index]);
     }
 }
        public static void TrySelect(ListSelector selector, IEnumerable <string> strings)
        {
            if (!strings.Any())
            {
                return;
            }
            int index = -1;

            for (int i = 0; i < selector.Items.Count; i++)
            {
                string x = (string)selector.Items[i];
                if (StringUtils.ContainsAll(x, strings))
                {
                    index = i;
                    break;
                }
            }
            if (index != -1)
            {
                selector.SelectedItems.Add(selector.Items[index]);
            }
        }