Example #1
0
        public void ShowLoginWindow(ExtendedWinFormsWebBrowser wbx)
        {
            var wbParent = wb.Parent;
            wbTaoChongZhiMode.TransitionToNext(wbLoginMode, wb);
            if (new TaoLoginForm(wbLoginMode).ShowDialog(this) == DialogResult.OK)
            {
                TaoAuthorizedCookieDictionary = CookieHelper.GetAllCookie(wb);
                WBHelper.Cookie = CookieHelper.ExpandCookieDictionary(TaoAuthorizedCookieDictionary);

                wbLoginMode.TransitionToNext(wbTaoChongZhiMode, wb);
                wb.Navigate(IndexUrl);
                wbParent.Controls.Add(wb);
            }
            else
            {
                ExitConfirmed = true;
                Application.Exit();
            }
        }
 public ExtendedWinFormsWebBrowserEventHelper(ExtendedWinFormsWebBrowser extendedWinFormsWebBrowser)
 {
     this.parent = extendedWinFormsWebBrowser;
 }
 public ExtendedWebBrowserSite(ExtendedWinFormsWebBrowser host) : base(host)
 {
     this.host = host;
     _manager = new IEDownloadManager(GetHostCookie, host);
 }
 public ExtendedWinFormsWebBrowserEventHelper(ExtendedWinFormsWebBrowser extendedWinFormsWebBrowser)
 {
     this.parent = extendedWinFormsWebBrowser;
 }
Example #5
0
 public ExtendedWebBrowserSite(ExtendedWinFormsWebBrowser host) : base(host)
 {
     this.host = host;
     _manager  = new IEDownloadManager(GetHostCookie, host);
 }