Пример #1
0
 private void GetResults()
 {
     if (!string.IsNullOrEmpty(_queryInput) && !string.IsNullOrWhiteSpace(_queryInput))
     {
         InfoList.Clear();
         var query   = new Query();
         var results = query.GetSearchResult(_queryInput, _selectedEngine);
         if (results != null && results.Any())
         {
             foreach (var r in results)
             {
                 var model = new DisplayModel()
                 {
                     RelatedKey  = r.RelatedKey,
                     Description = r.Description,
                     Url         = r.Url,
                 };
                 InfoList.Add(model);
             }
             NotifyPropertyChanged("InfoList");
             SelectedInfo = InfoList.FirstOrDefault();
         }
     }
 }