public async void SentOtpAgain() { bool isExistEmail = Unities.CheckEmailFormat(email); if (isExistEmail) { var checkForgotData = await _pinService.CheckForgotPin(birthDate, email); if (checkForgotData != null && !checkForgotData.IsError) { OtpForgotPassViewModel otpForgotPass = new OtpForgotPassViewModel(email, checkForgotData.Model.RefNumber, birthDate); await Application.Current.MainPage.Navigation.PushAsync(new PinPage(otpForgotPass)); } else { WarningText = "ไม่สามารถเชื่อมต่อได้"; WarningVisible = true; try { Vibration.Vibrate(); var duration = TimeSpan.FromSeconds(1); Vibration.Vibrate(duration); } catch (FeatureNotSupportedException ex) { } catch (Exception ex) { } } } else { await Application.Current.MainPage.Navigation.PopToRootAsync(); } }