/[RomCheater]/trunk/RomCheater.PluginFramework/Core/PluginBase.cs
ViewVC logotype

Diff of /trunk/RomCheater.PluginFramework/Core/PluginBase.cs

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

--- trunk/RomCheater.PluginFramework/Core/PluginBase.cs	2013/06/17 09:46:51	688
+++ trunk/RomCheater.PluginFramework/Core/PluginBase.cs	2013/06/17 10:02:53	689
@@ -144,5 +144,30 @@
         public event BaseEventHandler<PEViewerDataUpdatedEventArgs> OnPEDataUpdated;
         public event BaseEventHandler<ProcessChangedEventArgs> OnSelectedProcessChanged;
         public event BaseEventHandler<ConfigChangedEventArgs> OnSelectedConfigChanged;
+
+        public void RaisePluginFrameworkEvents()
+        {
+            if (this.OnPEDataUpdated != null)
+            {
+                if (this.peData != null)
+                {
+                    this.OnPEDataUpdated.Invoke(new PEViewerDataUpdatedEventArgs(this, this.peData));
+                }
+            }
+            if (this.OnSelectedProcessChanged != null)
+            {
+                if (this.AcceptedProcess != null)
+                {
+                    this.OnSelectedProcessChanged.Invoke(new ProcessChangedEventArgs(this, this.AcceptedProcess.Id));
+                }
+            }
+            if (this.OnSelectedConfigChanged != null)
+            {
+                if (this.AcceptedConfig != null)
+                {
+                    this.OnSelectedConfigChanged.Invoke(new ConfigChangedEventArgs(this, this.AcceptedConfig));
+                }
+            }
+        }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22