You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Projet_IHM/Sources/Stim/ProfilPage.xaml.cs

17 lines
419 B

using Model;
namespace Stim;
public partial class ProfilPage : ContentPage
{
public ProfilPage()
{
InitializeComponent();
BindingContext = ((App)App.Current).Manager;
}
private void CollectionView_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
((App)App.Current).Manager.CurrentUser.RemoveAGame((sender as CollectionView).SelectedItem as Game);
}
}