/[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:07:40	691
@@ -44,18 +44,31 @@
             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)
         {
-            logger.Warn.WriteLine("plugin_OnPEDataUpdated::has not been implemented!");
+            //logger.Warn.WriteLine("plugin_OnPEDataUpdated::has not been implemented!");
         }
         void plugin_OnSelectedConfigChanged(ConfigChangedEventArgs e)
         {
-            logger.Warn.WriteLine("plugin_OnSelectedConfigChanged::has not been implemented!");
+            //logger.Warn.WriteLine("plugin_OnSelectedConfigChanged::has not been implemented!");
         }
         void plugin_OnSelectedProcessChanged(ProcessChangedEventArgs e)
         {
-            logger.Warn.WriteLine("plugin_OnSelectedProcessChanged::has not been implemented!");
+            //logger.Warn.WriteLine("plugin_OnSelectedProcessChanged::has not been implemented!");
         }
         private void EmuMEMMapDockControl_Shown(object sender, EventArgs e)
         {

 

  ViewVC Help
Powered by ViewVC 1.1.22