Ajout d'une interface pour empecher l'ouverture de pluseiurs page quand on spam un bouton + ajout de son dans l'app (marche qu'avec chemin absolu pour l'instant)
parent
7d53cc8e20
commit
bef54b51da
Binary file not shown.
@ -1,14 +1,29 @@
|
||||
namespace ViewsApp.Views;
|
||||
|
||||
public partial class Accueil : ContentPage
|
||||
public partial class Accueil : ContentPage, IAllowClick
|
||||
{
|
||||
public Accueil()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void GoToFavoris(object sender, EventArgs e)
|
||||
private void GoToFavorisButton(object sender, EventArgs e)
|
||||
{
|
||||
if (!IAllowClick.AllowTap) return;
|
||||
else IAllowClick.AllowTap = false;
|
||||
|
||||
Navigation.PushAsync(new Favoris());
|
||||
|
||||
IAllowClick.ResumeTap();
|
||||
}
|
||||
|
||||
private void GoToPartitionButton(object sender, EventArgs e)
|
||||
{
|
||||
if (!IAllowClick.AllowTap) return;
|
||||
else IAllowClick.AllowTap = false;
|
||||
|
||||
Navigation.PushAsync(new Partition());
|
||||
|
||||
IAllowClick.ResumeTap();
|
||||
}
|
||||
}
|
@ -1,14 +1,31 @@
|
||||
namespace ViewsApp.Views;
|
||||
|
||||
public partial class Favoris : ContentPage
|
||||
public partial class Favoris : ContentPage, IAllowClick
|
||||
{
|
||||
public Favoris()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void GoToAccueilByLogo(object sender, EventArgs e)
|
||||
|
||||
private void GoToAccueilByLogoButton(object sender, EventArgs e)
|
||||
{
|
||||
Navigation.PushAsync(new Accueil());
|
||||
if (!IAllowClick.AllowTap) return;
|
||||
else IAllowClick.AllowTap = false;
|
||||
|
||||
Navigation.PopAsync();
|
||||
|
||||
IAllowClick.ResumeTap();
|
||||
}
|
||||
|
||||
|
||||
private void GoToPartitionButton(object sender, EventArgs e)
|
||||
{
|
||||
if (!IAllowClick.AllowTap) return;
|
||||
else IAllowClick.AllowTap = false;
|
||||
|
||||
Navigation.PushAsync(new Partition());
|
||||
|
||||
IAllowClick.ResumeTap();
|
||||
}
|
||||
}
|
Loading…
Reference in new issue