/[RomCheater]/trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs
ViewVC logotype

Diff of /trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs

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

--- trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs	2013/06/17 09:31:52	686
+++ trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs	2013/06/17 10:02:53	689
@@ -44,6 +44,19 @@
             this.plugin.OnSelectedProcessChanged += new BaseEventHandler<ProcessChangedEventArgs>(plugin_OnSelectedProcessChanged);
             this.plugin.OnSelectedConfigChanged += new BaseEventHandler<ConfigChangedEventArgs>(plugin_OnSelectedConfigChanged);
             this.plugin.OnPEDataUpdated += new BaseEventHandler<PEViewerDataUpdatedEventArgs>(plugin_OnPEDataUpdated);
+            RaisePluginFrameworkEvents();
+        }
+
+        bool EventsRaised = false;
+        private void RaisePluginFrameworkEvents()
+        {
+
+            if (this.plugin == null) { EventsRaised = true; return; }
+            if (!EventsRaised)
+            {
+                this.plugin.RaisePluginFrameworkEvents();
+                EventsRaised = true;
+            }
         }
         void plugin_OnPEDataUpdated(PEViewerDataUpdatedEventArgs e)
         {

 

  ViewVC Help
Powered by ViewVC 1.1.22