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(); } } }