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.
ConsEco/Sources/IHM/Mobile/Dashboard.xaml.cs

40 lines
717 B

using Model;
namespace IHM.Mobile;
public partial class DashBoard : ContentPage
{
public Manager Mgr => (App.Current as App).Manager;
public DashBoard()
{
InitializeComponent();
//Routing.RegisterRoute(nameof(DashBoard), typeof(DashBoard));
BindingContext = Mgr;
if (Mgr.User == null)
{
loadPage(new MainPage());
}
if (!Mgr.testConnexionAsDatabase())
{
loadPage(new ErrorPage());
}
}
public async void loadPage(Page p)
{
await Navigation.PushModalAsync(p);
}
private void Banques_Clicked(object sender, EventArgs e)
{
loadPage(new GestionBanques());
}
}