Esempio n. 1
0
        private static void webBrowser_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
        {
            var    uri    = e.Uri;
            string result = _webBrowser.SaveToString();

            if (!string.IsNullOrEmpty(uri.OriginalString))
            {
                if (uri.OriginalString == _secureServiceURL || uri.OriginalString == _secureServiceResultURL)
                {
                    _actionResult = BuyingParsing.Parse3DSecureBuying(result);
                }
                if (uri.LocalPath == "/success")
                {
                    Populate3DSecureBuying(_actionResult);
                }
                else if (uri.LocalPath == "/fail")
                {
                    _webBrowser.Navigated -= webBrowser_Navigated;
                    Populate3DSecureBuying(_actionResult);
                }
            }
        }