/// <summary> /// method to get pharmacy details /// </summary> private void PharmacyDetailsWebservicecall() { SignUpModel = new SignUpModel(this); }
/// <summary> /// Method to Navigate to Pages when "Continue" button is clicked /// </summary> private void ContinueToPage() { if (IsNewUserTab) { if (IsSignUpDataValid()) { if (Utilities.IsConnectedToNetwork()) { HideAllValidators(); ProgressBarVisibilty = Visibility.Visible; ProgressBarRowNo = "2"; App.HashPIN = Utilities.GetSHA256(DisplaySignUpPin); CheckForPharmacy(); HitVisibility = false; } else { IsPopupOpen = true; PopupText = "No connectivity."; HitVisibility = false; } } } else { if (IsLoginDataValid()) { ProgressBarVisibilty = Visibility.Visible; HitVisibility = false; ProgressBarRowNo = "4"; App.LoginPharId = LoginPharmacyID; App.HashPIN = Utilities.GetSHA256(DisplayLoginPIN); SignUpModel = new SignUpModel(this, "Loginscreen"); } } }
/// <summary> /// Check for valid pharmacy id and proceed to your details screen /// </summary> private void CheckForPharmacy() { SignUpModel = new SignUpModel(this, "CheckPharmacyId"); }
/// <summary> /// Navigate to Reset Pin Page /// </summary> private void NavigateToResetPinPage() { if (Utilities.IsConnectedToNetwork()) { App.transientMailId = LoginEmail; if(App.IsChangePharmacy) SignUpModel = new SignUpModel(this, "Changepharmacy"); else SignUpModel = new SignUpModel(this, "ResetPin"); } else { IsPopupOpen = true; PopupText = "No connectivity."; HitVisibility = false; } }