Example #1
0
        private void SavePageUnboundState()
        {
            IDictionary <string, object> state = this.State;
            string index = "Auth2FAPage_State";

            Auth2FAPage.PageState pageState = new Auth2FAPage.PageState();
            int num = this._viewModel.IsSMSMode ? 1 : 0;

            pageState.IsSMSMode = num != 0;
            state[index]        = pageState;
        }
Example #2
0
 private void RestorePageUnboundState()
 {
     if (!this.State.ContainsKey("Auth2FAPage_State"))
     {
         return;
     }
     Auth2FAPage.PageState pageState = this.State["Auth2FAPage_State"] as Auth2FAPage.PageState;
     if (pageState == null || !pageState.IsSMSMode)
     {
         return;
     }
     this._viewModel.IsSMSMode = true;
     this.SetSmsInputScope();
 }