/[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	2014/04/15 14:30:48	811
+++ trunk/RomCheater.Core/IWebBrowserProvider.cs	2014/04/15 14:52:10	812
@@ -4,6 +4,7 @@
 using System.Text;
 using System.Windows.Forms;
 using RomCheater.Logging;
+using Enterprise.Logging;
 
 namespace RomCheater.Core
 {
@@ -28,8 +29,8 @@
 
         #region IWebBrowserInterface Members
 
-        public void Navigate(string urlString) { logger.Debug.WriteLine("called::NavigateInternal(string urlString)::{0}", urlString); System.Diagnostics.Process.Start(urlString); }
-        public void Navigate(Uri url) { logger.Debug.WriteLine("called::NavigateInternal(Uri url)::{0}", url.ToString()); Navigate(url.ToString()); }
+        public void Navigate(string urlString) { gLog.Debug.WriteLine("called::NavigateInternal(string urlString)::{0}", urlString); System.Diagnostics.Process.Start(urlString); }
+        public void Navigate(Uri url) { gLog.Debug.WriteLine("called::NavigateInternal(Uri url)::{0}", url.ToString()); Navigate(url.ToString()); }
         #endregion
 
         public IWebBrowserInterface GetProvider()
@@ -64,12 +65,12 @@
         public IWebBrowserInterface Provider { get { return _Provider; } protected set { _Provider = value; } }
 
         #region Extensions to WebBrowser provider
-        public void Navigate(string urlString) { logger.Debug.WriteLine("called::Navigate(string urlString)::{0}", urlString); NavigateInternal(urlString); }
-        public void Navigate(Uri url) { logger.Debug.WriteLine("called::Navigate(Uri url)::{0}", url.ToString()); NavigateInternal(url.ToString()); }  
+        public void Navigate(string urlString) { gLog.Debug.WriteLine("called::Navigate(string urlString)::{0}", urlString); NavigateInternal(urlString); }
+        public void Navigate(Uri url) { gLog.Debug.WriteLine("called::Navigate(Uri url)::{0}", url.ToString()); NavigateInternal(url.ToString()); }  
 
         private void NavigateInternal(string url)
         {
-            logger.Debug.WriteLine("called::NavigateInternal(string url)::{0}", url);
+            gLog.Debug.WriteLine("called::NavigateInternal(string url)::{0}", url);
             try
             {
                 try
@@ -94,14 +95,14 @@
             catch (UriFormatException ex)
             {
                 MessageBox.Show(string.Format("Could not navigate to url: '{0}'", url), string.Format("A Uri Format Exception Occurred in '{0}'", this.GetType().Name), MessageBoxButtons.OK, MessageBoxIcon.Error);
-                logger.Error.WriteLine("Unable to navigate to url: '{0}'", url);
-                logger.VerboseError.WriteLine(ex.ToString());
+                gLog.Error.WriteLine("Unable to navigate to url: '{0}'", url);
+                gLog.Verbose.Error.WriteLine(ex.ToString());
             }
             catch (Exception ex)
             {
                 MessageBox.Show(string.Format("Could not navigate to url: '{0}'", url), string.Format("An {0} Exception Occurred in '{1}'",ex.GetType().Name, this.GetType().Name), MessageBoxButtons.OK, MessageBoxIcon.Error);
-                logger.Error.WriteLine("Unable to navigate to url: '{0}'", url);
-                logger.VerboseError.WriteLine(ex.ToString());
+                gLog.Error.WriteLine("Unable to navigate to url: '{0}'", url);
+                gLog.Verbose.Error.WriteLine(ex.ToString());
             }
         }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22