/[RomCheater]/trunk/RomCheater/Docking/FloatingWebBrowser.cs
ViewVC logotype

Annotation of /trunk/RomCheater/Docking/FloatingWebBrowser.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 696 - (hide annotations) (download)
Mon Jun 17 11:47:23 2013 UTC (7 years, 4 months ago) by william
File size: 1951 byte(s)

1 william 695 using System;
2     using System.Collections.Generic;
3     using System.ComponentModel;
4     using System.Data;
5     using System.Drawing;
6     using System.Linq;
7     using System.Text;
8     using System.Windows.Forms;
9     using WeifenLuo.WinFormsUI.Docking;
10 william 696 using RomCheater.Core;
11 william 695
12     namespace RomCheater.Docking
13     {
14 william 696 public partial class FloatingWebBrowser : DockContent, IWebBrowserInterface
15 william 695 {
16 william 696 private WebBrowserProvider BackingProvider = new WebBrowserProvider();
17 william 695 public FloatingWebBrowser()
18     {
19     InitializeComponent();
20 william 696 this.BackingProvider = new WebBrowserProvider(this.webBrowser);
21    
22 william 695 }
23 william 696
24    
25    
26     private void btnGo_Click(object sender, EventArgs e)
27     {
28    
29     }
30    
31    
32    
33    
34     public IWebBrowserInterface Provider
35     {
36     get { return this.BackingProvider; }
37     }
38    
39    
40     private void init_events()
41     {
42     this.webBrowser.Navigating += new WebBrowserNavigatingEventHandler(Provider_Navigating);
43     this.webBrowser.Navigated += new WebBrowserNavigatedEventHandler(Provider_Navigated);
44     this.webBrowser.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(Provider_DocumentCompleted);
45     }
46    
47    
48     #region Provider Events
49     void Provider_Navigated(object sender, WebBrowserNavigatedEventArgs e)
50     {
51    
52     }
53    
54     void Provider_Navigating(object sender, WebBrowserNavigatingEventArgs e)
55     {
56    
57     }
58     void Provider_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
59     {
60    
61     }
62     #endregion
63    
64     #region IWebBrowserInterface Members
65     public void Navigate(string urlString)
66     {
67     this.Provider.Navigate(urlString);
68     }
69     public void Navigate(Uri url)
70     {
71     this.Provider.Navigate(url);
72     }
73     #endregion
74 william 695 }
75     }

  ViewVC Help
Powered by ViewVC 1.1.22