/[RomCheater]/trunk/RomCheater.CheatPlugin/CheatCodeDockContent.cs
ViewVC logotype

Diff of /trunk/RomCheater.CheatPlugin/CheatCodeDockContent.cs

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

revision 686 by william, Mon Jun 17 09:31:52 2013 UTC revision 689 by william, Mon Jun 17 10:02:53 2013 UTC
# Line 42  namespace RomCheater.CheatPlugin Line 42  namespace RomCheater.CheatPlugin
42              this.plugin.OnSelectedProcessChanged += new BaseEventHandler<ProcessChangedEventArgs>(plugin_OnSelectedProcessChanged);              this.plugin.OnSelectedProcessChanged += new BaseEventHandler<ProcessChangedEventArgs>(plugin_OnSelectedProcessChanged);
43              this.plugin.OnSelectedConfigChanged += new BaseEventHandler<ConfigChangedEventArgs>(plugin_OnSelectedConfigChanged);              this.plugin.OnSelectedConfigChanged += new BaseEventHandler<ConfigChangedEventArgs>(plugin_OnSelectedConfigChanged);
44              this.plugin.OnPEDataUpdated += new BaseEventHandler<PEViewerDataUpdatedEventArgs>(plugin_OnPEDataUpdated);              this.plugin.OnPEDataUpdated += new BaseEventHandler<PEViewerDataUpdatedEventArgs>(plugin_OnPEDataUpdated);
45                RaisePluginFrameworkEvents();
46            }
47    
48            bool EventsRaised = false;
49            private void RaisePluginFrameworkEvents()
50            {
51    
52                if (this.plugin == null) { EventsRaised = true; return; }
53                if (!EventsRaised)
54                {
55                    this.plugin.RaisePluginFrameworkEvents();
56                    EventsRaised = true;
57                }
58          }          }
59          void plugin_OnPEDataUpdated(PEViewerDataUpdatedEventArgs e)          void plugin_OnPEDataUpdated(PEViewerDataUpdatedEventArgs e)
60          {          {

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

  ViewVC Help
Powered by ViewVC 1.1.22