Ejemplo n.º 1
0
        private async void SignInBtn_Clicked(object sender, EventArgs e)
        {
            YostocksApiServices apiService = new YostocksApiServices();
            bool response = await apiService.LoginUser(EntEmail.Text, EntPassword.Text);

            if (!response)
            {
                await DisplayAlert("Error", "Wrong Username or Password", "Cancel");
            }
            else if (response)
            {
                Navigation.InsertPageBefore(new ParentTabbedPage(), this);
                await Navigation.PopAsync();
            }
        }