private async void validateLoginAsync() { if (EntryEmail.Contains("@gmail.com")) { //App.Current.MainPage.DisplayAlert("Login", "Successfully Login", "Ok await App.Current.MainPage.Navigation.PushAsync(new DashboardPage()); } else { //DisplayAlertPrompt(); App.Current.MainPage.DisplayAlert("Login", "Enter user name with @gmail.com", "Ok"); } }
public LoginPage() { InitializeComponent(); OneSignal.Current.IdsAvailable(IdsAvailable); FlowDirection = (WaselDriver.Helper.Settings.LastUserGravity == "Arabic") ? FlowDirection.RightToLeft : FlowDirection.LeftToRight; userService = new UserServices(); EntryPhone.Completed += (Object sender, EventArgs e) => { EntryEmail.Focus(); }; EntryEmail.Completed += (Object sender, EventArgs e) => { EntryPassword.Focus(); }; Settings.LastUsedEmail = EntryEmail.Text; EntryPassword.Completed += (Object sender, EventArgs e) => { Loginbtn.Focus(); }; Settings.LastUsedEmail = EntryEmail.Text; }