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.
SAE-2.01/MCTG/Views/ContentPages/Login.xaml.cs

27 lines
529 B

using Model;
namespace Views;
public partial class Login : ContentPage
{
MasterManager Master => (Application.Current as App).Master;
public Login()
{
InitializeComponent();
BindingContext = Master.User;
}
private void LoginButton_Clicked(object sender, EventArgs e)
{
if (!Master.User.LogIn(login_entry.Text, passwd_entry.Text))
{
DisplayAlert("Wrong informations", "No mail or an incorrect password have been entered.", "OK");
}
else
{
Navigation.PopModalAsync();
}
}
}