ConsEco/Sources/IHM/Mobile/GestionBanques.xaml.cs

35 lines
726 B

using Model;
using System.Collections.ObjectModel;
namespace IHM.Mobile;
public partial class GestionBanques : ContentPage
{
public Manager Mgr => (App.Current as App).Manager;
public GestionBanques()
{
InitializeComponent();
BindingContext= Mgr;
Mgr.LoadBanques();
if (OperatingSystem.IsIOS())
{
boutonRetour.IsVisible = true;
}
}
public async void loadPage(Page p)
{
await Navigation.PushModalAsync(p);
}
private void AddBanque_Clicked(object sender, EventArgs e)
{
loadPage(new AjoutBanques());
}
private async void returnbutton(object sender, EventArgs e)
{
await Navigation.PopModalAsync();
}
}