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

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

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

revision 688 by william, Mon Jun 17 09:31:52 2013 UTC revision 689 by william, Mon Jun 17 10:02:53 2013 UTC
# Line 45  namespace RomCheater.PluginFramework.Cor Line 45  namespace RomCheater.PluginFramework.Cor
45              this.plugin.OnSelectedProcessChanged += new BaseEventHandler<ProcessChangedEventArgs>(plugin_OnSelectedProcessChanged);              this.plugin.OnSelectedProcessChanged += new BaseEventHandler<ProcessChangedEventArgs>(plugin_OnSelectedProcessChanged);
46              this.plugin.OnSelectedConfigChanged += new BaseEventHandler<ConfigChangedEventArgs>(plugin_OnSelectedConfigChanged);              this.plugin.OnSelectedConfigChanged += new BaseEventHandler<ConfigChangedEventArgs>(plugin_OnSelectedConfigChanged);
47              this.plugin.OnPEDataUpdated += new BaseEventHandler<PEViewerDataUpdatedEventArgs>(plugin_OnPEDataUpdated);              this.plugin.OnPEDataUpdated += new BaseEventHandler<PEViewerDataUpdatedEventArgs>(plugin_OnPEDataUpdated);
48                RaisePluginFrameworkEvents();
49          }          }
50    
51            bool EventsRaised = false;
52            private void RaisePluginFrameworkEvents()
53            {
54    
55                if (this.plugin == null) { EventsRaised = true; return; }
56                if (!EventsRaised)
57                {
58                    this.plugin.RaisePluginFrameworkEvents();
59                    EventsRaised = true;
60                }
61            }
62    
63          void plugin_OnPEDataUpdated(PEViewerDataUpdatedEventArgs e)          void plugin_OnPEDataUpdated(PEViewerDataUpdatedEventArgs e)
64          {          {
65              logger.Warn.WriteLine("plugin_OnPEDataUpdated::has not been implemented!");              logger.Warn.WriteLine("plugin_OnPEDataUpdated::has not been implemented!");
# Line 56  namespace RomCheater.PluginFramework.Cor Line 70  namespace RomCheater.PluginFramework.Cor
70          }          }
71          void plugin_OnSelectedProcessChanged(ProcessChangedEventArgs e)          void plugin_OnSelectedProcessChanged(ProcessChangedEventArgs e)
72          {          {
73              logger.Warn.WriteLine("plugin_OnSelectedProcessChanged::has not been implemented!");              //logger.Warn.WriteLine("plugin_OnSelectedProcessChanged::has not been implemented!");
74    
75               var list = this.plugin.QueryMemoryRegions();
76    
77          }          }
78    
79    

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

  ViewVC Help
Powered by ViewVC 1.1.22