public void ShowTwoFAWindow(ApiAuthResponse auth)
        {
            TwoFAWindow.SetAddress(auth.TwoFAToAddress);

            TwoFAWindow.Show();
            RestButton.IsVisible = false;
        }
        protected override bool OnBackButtonPressed()
        {
            if (TwoFAWindow.IsVisible)
            {
                TwoFAWindow.Hide();
                return(true);
            }

            backButtonCount++;

            if (backButtonCount == 2)
            {
                backButtonCount = 0;
                DependencyService.Get <INativeHelper>().Close();
            }
            else
            {
                Device.BeginInvokeOnMainThread(() =>
                {
                    Utils.Toast("Press again to EXIT!");
                });
            }
            return(true);
        }
示例#3
0
 public void ShowTwoFAWindow(ApiAuthResponse auth)
 {
     TwoFAWindow.SetAddress(auth.TwoFAToAddress);
     TwoFAWindow.Show();
 }