Merge pull request 'Ajout Binding PageProfil + Popup PageJeu (Bouton Ajouter)' (#45) from remi into master
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
Reviewed-on: remi.lavergne/SAE2.01-IHM_-_Remi_LAVERGNE_-_Yvan_CALATAYUD#45pull/46/head
commit
3b4bc8a4cd
@ -1,32 +0,0 @@
|
|||||||
using GameAtlas.Models;
|
|
||||||
|
|
||||||
|
|
||||||
namespace GameAtlas.Views;
|
|
||||||
|
|
||||||
|
|
||||||
public partial class PageAcceuil : ContentPage
|
|
||||||
{
|
|
||||||
public Manager AccueilManager => (App.Current as App).MyManager;
|
|
||||||
|
|
||||||
public PageAcceuil()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
|
|
||||||
BindingContext = AccueilManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
private async void OnProfil_Tapped(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
await Navigation.PushAsync(new PageProfil());
|
|
||||||
}
|
|
||||||
|
|
||||||
private async void OnButtonClicked(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
var selectedjeu = (sender as ImageButton)?.BindingContext as Jeu;
|
|
||||||
if (selectedjeu != null)
|
|
||||||
{
|
|
||||||
await Navigation.PushAsync(new PageJeu(selectedjeu));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in new issue