Bläddra i källkod

Небольшие исправления

Fox 3 månader sedan
förälder
incheckning
2453b21127
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Pages/UserTests.xaml.cs

+ 1 - 1
Pages/UserTests.xaml.cs

@@ -67,7 +67,7 @@ namespace PsychoTest.Pages
             List<Tests> FilterList = DB.Tests.ToList();
             if(CategoryFilter.SelectedIndex!= 0)
             {
-                FilterList = FilterList.Where(x=>x.Id_category+1 == CategoryFilter.SelectedIndex).ToList();
+                FilterList = FilterList.Where(x=>x.Id_category == CategoryFilter.SelectedIndex+1).ToList();
             }
             if (!string.IsNullOrEmpty(SearchBar.Text))
             {