Ajout Binding PageProfil + Popup PageJeu (Bouton Ajouter) #45
Merged
remi.lavergne
merged 5 commits from remi
into master
2 years ago
@ -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