Beispiel #1
0
 private async void OnLogin()
 {
     if (string.IsNullOrEmpty(User.FirstName) || string.IsNullOrEmpty(User.LastName))
     {
         await AlertService.AlertAsync("Alert", "Hay campos vacios");
     }
     else
     {
         await AlertService.AlertAsync("Alert", $"{User.FirstName} - {User.LastName}");
     }
 }
Beispiel #2
0
        private async void OnLogin()
        {
            if (string.IsNullOrEmpty(Email) || string.IsNullOrEmpty(Password))
            {
                await AlertService.AlertAsync("Error", "Hay campos vacios");
            }
            else
            {
                await AlertService.AlertAsync("Bienvenido", "Hola, " + Email);

                await NavigationService.NavigationAsync(new HomeTabbedPage(), false);
            }
        }
Beispiel #3
0
        private async void OnRegister()
        {
            Console.WriteLine("Entre al metodo");
            if (string.IsNullOrEmpty(Name) || string.IsNullOrEmpty(Email) || string.IsNullOrEmpty(Password) || string.IsNullOrEmpty(ConfirmPassword))
            {
                await AlertService.AlertAsync("Error", "Debe de llenar todos los campos");
            }
            else if (Password != ConfirmPassword)
            {
                await AlertService.AlertAsync("Error", "Las contraseñas ingresadas son diferentes");
            }
            else
            {
                await AlertService.AlertAsync("Bienvenido", "Hola, " + Name);

                await NavigationService.NavigationAsync(new HomeTabbedPage(), false);
            }
        }