Exemplo n.º 1
0
        private void BrowserOnNavigating(object sender, WebNavigatingEventArgs args)
        {
            switch (_currentStep)
            {
            case PaymentPageStep.LoginPage:
                RenderMyPaymentPage();
                return;

            case PaymentPageStep.MyPaymentPage:
                _currentStep = PaymentPageStep.SberbankCardPage;
                return;

            case PaymentPageStep.SberbankCardPage:
                _currentStep = PaymentPageStep.ClientBankSmsPage;
                return;

            case PaymentPageStep.ClientBankSmsPage:
                _currentStep = PaymentPageStep.ReturnFromClientBankPage;
                break;
            }

            if (args.Url.Contains(_infoService.BaseUrl))
            {
                GoToMainPage();
            }
        }
Exemplo n.º 2
0
 private void RenderLoginPage()
 {
     _browser.IsVisible = false;
     _browser.Source    = new HtmlWebViewSource
     {
         Html = App.GetLoginPageContent(typeof(PaymentPage))
     };
     _currentStep = PaymentPageStep.LoginPage;
 }
Exemplo n.º 3
0
 private void GoToMainPage()
 {
     // Вернулись назад со страницы оплаты (нужно перезагрузить информацию о счете)
     LoadingIndicator.IsRunning = true;
     LoadingIndicator.IsVisible = true;
     Thread.Sleep(3000);
     _browser.IsVisible             = false;
     App.AccountBalance.RequestDate = DateTime.MinValue;
     App.GoToMainPage(true);
     _currentStep = PaymentPageStep.None;
 }
Exemplo n.º 4
0
 private void RenderMyPaymentPage()
 {
     _browser.Source = new HtmlWebViewSource
     {
         Html = App.GetPaymentPageContent(typeof(PaymentPage))
     };
     LoadingIndicator.IsRunning = false;
     LoadingIndicator.IsVisible = false;
     _browser.IsVisible         = true;
     _isNeedReload = false;
     _currentStep  = PaymentPageStep.MyPaymentPage;
 }