Пример #1
0
 /// <summary>
 /// Constructor for login screen
 /// </summary>
 /// <param name="loginViewModel"></param>
 /// <param name="forlogin"></param>
 public SignUpModel(SignUpViewModel loginViewModel, string forlogin)
 {
     objSignUpViewModel = loginViewModel;
     switch (forlogin)
     {
         case "Loginscreen":
             BrandingInfoWebService();
             break;
         case "CheckPharmacyId":
             CheckPharmacyIdWebservice();
             break;
         case "Changepharmacy":
             CallSendNominationWebService();
             break;
         default:
             ResetPinWebService();
             break;
     }
     
 }
Пример #2
0
        /// <summary>
        /// OnNaviagted to event
        /// </summary>
        /// <param name="e"></param>
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            SignUpViewModel vmSignUp = null;
            if (isNewPageInstance)
            {
               
                if (vmSignUp == null)
                {
                    vmSignUp = new SignUpViewModel();
                    if (App.LoginPharmacyname != null)
                    {
                        vmSignUp.PharmacyName = App.LoginPharmacyname;
                        vmSignUp.AddressLine1 = App.LoginPharmacyAddress1;
                        vmSignUp.AddressLine2 = App.LoginPharmacyAddress2;
                        vmSignUp.AddressLine3 = App.LoginPharmacyAddress3;
                        vmSignUp.PinCode = App.PostCode;
                    }
                    else
                    {
                        vmSignUp.IsPharmacyDetailsVisible = Visibility.Collapsed;
                        
                    }

                }
                DataContext = vmSignUp;
            }
          

            BaseViewModel viewModel = this.DataContext as BaseViewModel;
            viewModel.Initialize(this.NavigationContext.QueryString);
            isNewPageInstance = false;
        }
Пример #3
0
 /// <summary>
 /// For SignUp Screen get details
 /// </summary>
 /// <param name="signUpViewModel"></param>
 public SignUpModel(SignUpViewModel signUpViewModel)
 {
     objSignUpViewModel = signUpViewModel;
     CallGetPharmacyInformationWebService();
 }