/[RomCheater]/trunk/RomCheater.ScratchPad/ScratchPadDocument.cs
ViewVC logotype

Diff of /trunk/RomCheater.ScratchPad/ScratchPadDocument.cs

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

--- trunk/RomCheater.ScratchPad/ScratchPadDocument.cs	2013/06/21 04:22:03	782
+++ trunk/RomCheater.ScratchPad/ScratchPadDocument.cs	2013/06/21 04:26:36	783
@@ -14,7 +14,8 @@
 namespace RomCheater.ScratchPad
 {
     public partial class ScratchPadDocument : UserControl
-    {
+    {        
+        public event EventHandler<LinkClickedEventArgs> LinkClicked;
         public event BaseEventHandler<ControlClosingEventArgs<int>> DocumentClosing;
 
         const string NewDocumentFilename = "ScratchPad";
@@ -233,5 +234,13 @@
         {
             this.DocumentSaved = false;
         }
+
+        private void txtEditor_LinkClicked(object sender, LinkClickedEventArgs e)
+        {
+            if (this.LinkClicked != null)
+            {
+                this.LinkClicked.Invoke(sender, e);
+            }
+        }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22