Example #1
0
 public void Refresh()
 {
     while (IE.ReadyState != tagREADYSTATE.READYSTATE_COMPLETE)
     {
         Thread.Sleep(500);
     }
     IE.Refresh();
 }
Example #2
0
        void CancelHandler(object sender, EventArgs e)
        {
            DialogResult dr = System.Windows.Forms.MessageBox.Show("Esta seguro que desea cancelar el agregar el sitio a 1000pass.com?", "1000pass.com", MessageBoxButtons.YesNo);

            if (dr == System.Windows.Forms.DialogResult.Yes)
            {
                this.adding = false;
                this.menuItemAddManual.Visible = true;
                this.menuItemAddAuto.Visible   = true;
                this.menuItemUsername.Visible  = false;
                this.menuItemPassword.Visible  = false;
                this.menuItemEnter.Visible     = false;
                this.menuItemCancel.Visible    = false;
            }

            // removes borders... (and others?)
            ieInstance.Refresh();
        }
        /// <summary>
        /// Navigates the browser to the provided URI.
        /// </summary>
        /// <param name="uri">The URI to navigate to.</param>
        protected override void BrowserNavigateTo(string uri)
        {
            Utility.Retry(() =>
            {
                LogManager.Write("InternetExplorerBrowser.NavigateTo(" + uri + ")", LogLevel.Verbose);
                if (_browser.LocationURL == uri)
                {
                    _browser.Refresh();
                }
                else
                {
                    _browser.Navigate(uri);
                }

                Refresh();
            });
        }