/[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 699 by william, Mon Jun 17 12:40:47 2013 UTC revision 733 by william, Wed Jun 19 15:32:53 2013 UTC
# Line 19  namespace RomCheater.Core Line 19  namespace RomCheater.Core
19    
20      public class EmptyWebBrowserProvider : BaseWebBrowserProvider, IWebBrowserInterface      public class EmptyWebBrowserProvider : BaseWebBrowserProvider, IWebBrowserInterface
21      {      {
22          public EmptyWebBrowserProvider() :base()          private WebBrowserProvider BackingProvider = new WebBrowserProvider();
23            public EmptyWebBrowserProvider()
24                : base()
25          {          {
26                this.BackingProvider = new WebBrowserProvider(this);          
27          }          }
28            public IWebBrowserInterface Provider
29            {
30                get { return this.BackingProvider; }
31            }
32    
33            #region IWebBrowserInterface Members
34            public void Navigate(string urlString)
35            {
36                ////this.Provider.Navigate(urlString);
37                //this.webBrowser.Navigate(urlString);
38                System.Diagnostics.Process.Start(urlString);
39            }
40            public void Navigate(Uri url) { Navigate(url.ToString()); }
41            #endregion
42      }      }
43    
44      public class WebBrowserProvider : BaseWebBrowserProvider, IWebBrowserInterface      public class WebBrowserProvider : BaseWebBrowserProvider, IWebBrowserInterface
45      {      {
46            public static IWebBrowserInterface DefaultProvider { get { return WebBrowserProvider.EmptyProvider; } }
47            public static IWebBrowserInterface EmptyProvider { get { return WebBrowserProvider.Empty; } }
48            public static IWebBrowserInterface Empty { get { return new EmptyWebBrowserProvider(); } }
49          public WebBrowserProvider() { }          public WebBrowserProvider() { }
50          //public WebBrowserProvider(IWebBrowserInterface provider) { }          //public WebBrowserProvider(IWebBrowserInterface provider) { }
51          public WebBrowserProvider(IWebBrowserInterface provider)          public WebBrowserProvider(IWebBrowserInterface provider)

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

  ViewVC Help
Powered by ViewVC 1.1.22