/[RomCheater]/trunk/RomCheater.Core/IWebBrowserProvider.cs
ViewVC logotype

Diff of /trunk/RomCheater.Core/IWebBrowserProvider.cs

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

revision 698 by william, Mon Jun 17 12:19:13 2013 UTC revision 699 by william, Mon Jun 17 12:40:47 2013 UTC
# Line 26  namespace RomCheater.Core Line 26  namespace RomCheater.Core
26    
27      public class WebBrowserProvider : BaseWebBrowserProvider, IWebBrowserInterface      public class WebBrowserProvider : BaseWebBrowserProvider, IWebBrowserInterface
28      {      {
29          public WebBrowserProvider() : this(new WebBrowser()) { }          public WebBrowserProvider() { }
30          public WebBrowserProvider(IWebBrowserInterface provider) { }          //public WebBrowserProvider(IWebBrowserInterface provider) { }
31          public WebBrowserProvider(WebBrowser provider)          public WebBrowserProvider(IWebBrowserInterface provider)
32              : base(provider)              : base(provider)
33          {          {
34          }          }
35      }      }
36    
37      public class BaseWebBrowserProvider : IWebBrowserInterface, IWebBrowserProvider      public abstract class BaseWebBrowserProvider : IWebBrowserInterface, IWebBrowserProvider
38      {      {
39            
40          public BaseWebBrowserProvider() : this(new WebBrowser()) { }          public BaseWebBrowserProvider() { }
41          protected BaseWebBrowserProvider(WebBrowser provider)          protected BaseWebBrowserProvider(IWebBrowserInterface provider)
42          {          {
43              this.Provider = provider;              this.Provider = provider;
44          }          }
45          #region IWebBrowserInterface Members          #region IWebBrowserInterface Members
46          private WebBrowser _Provider;          private IWebBrowserInterface _Provider;
47          public WebBrowser Provider { get { return _Provider; } protected set { _Provider = value; } }          public IWebBrowserInterface Provider { get { return _Provider; } protected set { _Provider = value; } }
48    
49          #region Extensions to WebBrowser provider          #region Extensions to WebBrowser provider
50          public void Navigate(string urlString) { NavigateInternal(urlString); }          public void Navigate(string urlString) { NavigateInternal(urlString); }
51          public void Navigate(Uri url) { NavigateInternal(url.ToString()); }          public void Navigate(Uri url) { NavigateInternal(url.ToString()); }  
52    
53          private void NavigateInternal(string url)          private void NavigateInternal(string url)
54          {          {

Legend:
Removed from v.698  
changed lines
  Added in v.699

  ViewVC Help
Powered by ViewVC 1.1.22