private void GetDataButton_OnClick(object sender, RoutedEventArgs e)
        {
            //var dataList1 = GetDataList1("c");
            //var dataList2 = GetDataList2("cw");
            var items = SearchIndex.GetAllItems();

            ResultListBox.ItemsSource = items;
        }
 public string GetDataList2(string key)
 {
     if (key == "")
     {
         return("");
     }
     try
     {
         var    list = SearchIndex.Search("acronym", key, out var recCount, out var eventTime);
         string str  = "";
         if (list == null)
         {
             str = "";
         }
         else
         {
             int num3 = 0;
             while (true)
             {
                 if (num3 >= list.Count)
                 {
                     str = str ?? "";
                     break;
                 }
                 string str3     = str;
                 var    strArray = new string[] { str3, "\r\n" + list[num3].Acronym + "\r\n" + list[num3].English + "\r\n" + list[num3].Chinese + "\r\n" };
                 str = string.Concat(strArray);
                 num3++;
             }
         }
         return(str);
     }
     catch
     {
         return("");
     }
 }