protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            HardwareButtons.BackPressed += NavigateBack;

            LoginBtn.Visibility = SMSGrid.Visibility = PhoneNumGrid.Visibility = RevocationGrid.Visibility = ErrorLabel.Visibility = Visibility.Collapsed;
            Progress.Visibility = Visibility.Visible;

            this.linker          = new AuthenticatorLinker(Storage.SDFromStore());
            linker.LinkedAccount = Storage.SGAFromStore();
            linker.AddAuthenticator(LinkResponse);
        }
Beispiel #2
0
        private bool OpenApp(Frame rootFrame, object o = null)
        {
            SessionData data = Storage.SDFromStore();

            if (data != null)
            {
                return(rootFrame.Navigate(typeof(MainPage), o));
            }
            else
            {
                return(rootFrame.Navigate(typeof(Login), o));
            }
        }