/[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

--- trunk/RomCheater.Core/IWebBrowserProvider.cs	2013/06/19 15:18:52	732
+++ trunk/RomCheater.Core/IWebBrowserProvider.cs	2013/06/19 15:32:53	733
@@ -19,13 +19,33 @@
 
     public class EmptyWebBrowserProvider : BaseWebBrowserProvider, IWebBrowserInterface
     {
-        public EmptyWebBrowserProvider() :base()
+        private WebBrowserProvider BackingProvider = new WebBrowserProvider();
+        public EmptyWebBrowserProvider()
+            : base()
         {
+            this.BackingProvider = new WebBrowserProvider(this);           
         }
+        public IWebBrowserInterface Provider
+        {
+            get { return this.BackingProvider; }
+        }
+
+        #region IWebBrowserInterface Members
+        public void Navigate(string urlString)
+        {
+            ////this.Provider.Navigate(urlString);
+            //this.webBrowser.Navigate(urlString);
+            System.Diagnostics.Process.Start(urlString);
+        }
+        public void Navigate(Uri url) { Navigate(url.ToString()); }
+        #endregion
     }
 
     public class WebBrowserProvider : BaseWebBrowserProvider, IWebBrowserInterface
     {
+        public static IWebBrowserInterface DefaultProvider { get { return WebBrowserProvider.EmptyProvider; } }
+        public static IWebBrowserInterface EmptyProvider { get { return WebBrowserProvider.Empty; } }
+        public static IWebBrowserInterface Empty { get { return new EmptyWebBrowserProvider(); } }
         public WebBrowserProvider() { }
         //public WebBrowserProvider(IWebBrowserInterface provider) { }
         public WebBrowserProvider(IWebBrowserInterface provider)

 

  ViewVC Help
Powered by ViewVC 1.1.22