Esempio n. 1
0
        private void ClickedLogin(object sender, EventArgs args)
        {
            UserModel user = context.AttemptLogin();

            if (user == null)
            {
                // Invalid user attempted to log in :)
                DisplayAlert("Autenticacion fallida", "Datos de inicio incorrectos", "OK");
            }
            else
            {
                Navigation.PushAsync(new CoursesView(user));
            }
        }
Esempio n. 2
0
 private void LoginButton_Clicked(object sender, EventArgs e)
 {
     waitingGif.IsVisible = true;
     loginViewModel.AttemptLogin();
     waitingGif.Source = "tick.png";
 }