ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.PluginFramework/Core/ScratchPad.cs
(Generate patch)

Comparing trunk/RomCheater.PluginFramework/Core/ScratchPad.cs (file contents):
Revision 698 by william, Mon Jun 17 11:47:23 2013 UTC vs.
Revision 699 by william, Mon Jun 17 12:40:47 2013 UTC

--- trunk/RomCheater.PluginFramework/Core/ScratchPad.cs	2013/06/17 12:19:13	698
+++ trunk/RomCheater.PluginFramework/Core/ScratchPad.cs	2013/06/17 12:40:47	699
@@ -260,7 +260,25 @@ namespace RomCheater.PluginFramework.Cor
 
         private void txtScratchPad_LinkClicked(object sender, LinkClickedEventArgs e)
         {
-            System.Diagnostics.Process.Start(e.LinkText);            
+            //System.Diagnostics.Process.Start(e.LinkText);
+            if (this.plugin != null)
+            {
+                var p = this.plugin.WebBrowserInterface;
+                if (p != null)
+                {
+                    p.Navigate(e.LinkText);
+                }
+                else
+                {
+                    logger.Debug.WriteLine("Could not navigate to url: '{0}'", e.LinkText);
+                    logger.Debug.WriteLine("Could not obtain a handle to the WebBrowser Provider's Interface.");
+                }
+            }
+            else
+            {
+                logger.Debug.WriteLine("Could not navigate to url: '{0}'", e.LinkText);
+                logger.Debug.WriteLine("Loaded plugin is null");
+            }
         }
     }
 }