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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 695 by william, Mon Jun 17 10:53:53 2013 UTC revision 696 by william, Mon Jun 17 11:47:23 2013 UTC
# Line 7  using System.Linq; Line 7  using System.Linq;
7  using System.Text;  using System.Text;
8  using System.Windows.Forms;  using System.Windows.Forms;
9  using WeifenLuo.WinFormsUI.Docking;  using WeifenLuo.WinFormsUI.Docking;
10    using RomCheater.Core;
11    
12  namespace RomCheater.Docking  namespace RomCheater.Docking
13  {  {
14      public partial class FloatingWebBrowser : DockContent      public partial class FloatingWebBrowser : DockContent, IWebBrowserInterface
15      {      {
16            private WebBrowserProvider BackingProvider = new WebBrowserProvider();
17          public FloatingWebBrowser()          public FloatingWebBrowser()
18          {          {
19              InitializeComponent();              InitializeComponent();
20                this.BackingProvider = new WebBrowserProvider(this.webBrowser);
21    
22            }
23    
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      }      }
75  }  }

Legend:
Removed from v.695  
changed lines
  Added in v.696

  ViewVC Help
Powered by ViewVC 1.1.22