|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
namespace GameAtlas.Views;
|
|
|
|
|
|
|
|
|
|
using GameAtlas.Models;
|
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
|
|
|
|
|
public partial class PageParcourir : ContentPage
|
|
|
|
|
{
|
|
|
|
@ -27,4 +28,16 @@ public partial class PageParcourir : ContentPage
|
|
|
|
|
{
|
|
|
|
|
await Navigation.PopAsync();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void SearchBar_TextChanged(object sender, TextChangedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if(string.IsNullOrWhiteSpace(e.NewTextValue))
|
|
|
|
|
{
|
|
|
|
|
searchResults.ItemsSource = ParcourirManager.ListJeux;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
searchResults.ItemsSource = ParcourirManager.ListJeux.Where(i => i.Nom.ToLower().Contains(e.NewTextValue.ToLower()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|