Пример #1
0
		private void axMozillaBrowser1_BeforeNavigate2(object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_BeforeNavigate2Event e)
		{
		}
Пример #2
0
		private void axMozillaBrowser1_NavigateComplete2(object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_NavigateComplete2Event e)
		{
			this.Text = axMozillaBrowser1.LocationName + " - CSBrowse";
			url.Text = axMozillaBrowser1.LocationURL;
		}
Пример #3
0
		private void axMozillaBrowser1_CommandStateChange(object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_CommandStateChangeEvent e)
		{
			if ((e.command & 0x1) != 0) // Forward
			{
				btnForward.Enabled = e.enable;
			}
			if ((e.command & 0x2) != 0) // Backward
			{
				btnBack.Enabled = e.enable;
			}
		}
Пример #4
0
		private void axMozillaBrowser1_NewWindow2(object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_NewWindow2Event e)
		{
			Form1 f = new Form1();
			f.Show();
			object n = null;
			f.axMozillaBrowser1.Navigate("about:blank", ref n, ref n, ref n, ref n);
			e.ppDisp = f.axMozillaBrowser1.Application;
		}
Пример #5
0
		private void axMozillaBrowser1_StatusTextChange(object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_StatusTextChangeEvent e)
		{
			statusMessagePane.Text = e.text;
		}
Пример #6
0
 public void OnTitleChangeGecko(Object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_TitleChangeEvent e)
 {
     mBrowserWindow.OnTitleChange(e.text);
 }
Пример #7
0
 public void OnProgressGecko(Object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_ProgressChangeEvent e)
 {
     mBrowserWindow.OnProgress(e.progress, e.progressMax);
 }
Пример #8
0
 public void OnNewWindowGecko(Object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_NewWindow2Event e)
 {
     bool allowPopups = ServiceManager.Preferences.GetBoolPref("browser.allowpopups");
       if (allowPopups)
       {
     BrowserWindow window = new BrowserWindow();
     window.WebBrowser.RealizeLayoutEngine();
     window.Show();
     e.ppDisp = window.WebBrowser.Gecko;
       }
       else
     e.cancel = true;
 }
Пример #9
0
 public void OnNavigateComplete2Gecko(Object sender, AxMOZILLACONTROLLib.DWebBrowserEvents2_NavigateComplete2Event e)
 {
     mBrowserWindow.OnNavigateComplete2(e.uRL as string);
 }