parent
842c6af17c
commit
c4d3ed2043
@ -1,9 +1,26 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue