Exemplo n.º 1
0
 private void SearchItems(string query)
 {
     if (string.IsNullOrWhiteSpace(query))
     {
         Filtered = null;
     }
     else
     {
         var filteredItems = Saves
                             .Where(bear => bear.File.FileName.IndexOf(query, System.StringComparison.OrdinalIgnoreCase) >= 0)
                             .ToList();
         Filtered = new ObservableCollection <LoadableSAV>(filteredItems);
     }
 }