/[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

revision 684 by william, Mon Jun 17 08:52:54 2013 UTC revision 689 by william, Mon Jun 17 10:02:53 2013 UTC
# Line 22  using System.Windows.Forms; Line 22  using System.Windows.Forms;
22  using WeifenLuo.WinFormsUI.Docking;  using WeifenLuo.WinFormsUI.Docking;
23  using RomCheater.PluginFramework.Core;  using RomCheater.PluginFramework.Core;
24  using RomCheater.Logging;  using RomCheater.Logging;
25    using RomCheater.Core;
26    
27  namespace RomCheater.EmuMMAPPlugin  namespace RomCheater.EmuMMAPPlugin
28  {  {
# Line 40  namespace RomCheater.EmuMMAPPlugin Line 41  namespace RomCheater.EmuMMAPPlugin
41          private void InitPluginFramework()          private void InitPluginFramework()
42          {          {
43              if (this.plugin == null) { return; }              if (this.plugin == null) { return; }
44              this.plugin.OnSelectedProcessChanged += new PluginFramework.Events.BaseEventHandler<PluginFramework.Events.ProcessChangedEventArgs>(plugin_OnSelectedProcessChanged);              this.plugin.OnSelectedProcessChanged += new BaseEventHandler<ProcessChangedEventArgs>(plugin_OnSelectedProcessChanged);
45              this.plugin.OnSelectedConfigChanged += new PluginFramework.Events.BaseEventHandler<PluginFramework.Events.ConfigChangedEventArgs>(plugin_OnSelectedConfigChanged);              this.plugin.OnSelectedConfigChanged += new BaseEventHandler<ConfigChangedEventArgs>(plugin_OnSelectedConfigChanged);
46              this.plugin.OnPEDataUpdated += new PluginFramework.Events.BaseEventHandler<PluginFramework.Events.PEViewerDataUpdatedEventArgs>(plugin_OnPEDataUpdated);              this.plugin.OnPEDataUpdated += new BaseEventHandler<PEViewerDataUpdatedEventArgs>(plugin_OnPEDataUpdated);
47                RaisePluginFrameworkEvents();
48          }          }
49          void plugin_OnPEDataUpdated(PluginFramework.Events.PEViewerDataUpdatedEventArgs e)  
50            bool EventsRaised = false;
51            private void RaisePluginFrameworkEvents()
52            {
53    
54                if (this.plugin == null) { EventsRaised = true; return; }
55                if (!EventsRaised)
56                {
57                    this.plugin.RaisePluginFrameworkEvents();
58                    EventsRaised = true;
59                }
60            }
61            void plugin_OnPEDataUpdated(PEViewerDataUpdatedEventArgs e)
62          {          {
63              logger.Warn.WriteLine("plugin_OnPEDataUpdated::has not been implemented!");              logger.Warn.WriteLine("plugin_OnPEDataUpdated::has not been implemented!");
64          }          }
65          void plugin_OnSelectedConfigChanged(PluginFramework.Events.ConfigChangedEventArgs e)          void plugin_OnSelectedConfigChanged(ConfigChangedEventArgs e)
66          {          {
67              logger.Warn.WriteLine("plugin_OnSelectedConfigChanged::has not been implemented!");              logger.Warn.WriteLine("plugin_OnSelectedConfigChanged::has not been implemented!");
68          }          }
69          void plugin_OnSelectedProcessChanged(PluginFramework.Events.ProcessChangedEventArgs e)          void plugin_OnSelectedProcessChanged(ProcessChangedEventArgs e)
70          {          {
71              logger.Warn.WriteLine("plugin_OnSelectedProcessChanged::has not been implemented!");              logger.Warn.WriteLine("plugin_OnSelectedProcessChanged::has not been implemented!");
72          }          }

Legend:
Removed from v.684  
changed lines
  Added in v.689

  ViewVC Help
Powered by ViewVC 1.1.22