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

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

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

revision 688 by william, Mon Jun 17 09:46:51 2013 UTC revision 689 by william, Mon Jun 17 10:02:53 2013 UTC
# Line 144  namespace RomCheater.PluginFramework.Cor Line 144  namespace RomCheater.PluginFramework.Cor
144          public event BaseEventHandler<PEViewerDataUpdatedEventArgs> OnPEDataUpdated;          public event BaseEventHandler<PEViewerDataUpdatedEventArgs> OnPEDataUpdated;
145          public event BaseEventHandler<ProcessChangedEventArgs> OnSelectedProcessChanged;          public event BaseEventHandler<ProcessChangedEventArgs> OnSelectedProcessChanged;
146          public event BaseEventHandler<ConfigChangedEventArgs> OnSelectedConfigChanged;          public event BaseEventHandler<ConfigChangedEventArgs> OnSelectedConfigChanged;
147    
148            public void RaisePluginFrameworkEvents()
149            {
150                if (this.OnPEDataUpdated != null)
151                {
152                    if (this.peData != null)
153                    {
154                        this.OnPEDataUpdated.Invoke(new PEViewerDataUpdatedEventArgs(this, this.peData));
155                    }
156                }
157                if (this.OnSelectedProcessChanged != null)
158                {
159                    if (this.AcceptedProcess != null)
160                    {
161                        this.OnSelectedProcessChanged.Invoke(new ProcessChangedEventArgs(this, this.AcceptedProcess.Id));
162                    }
163                }
164                if (this.OnSelectedConfigChanged != null)
165                {
166                    if (this.AcceptedConfig != null)
167                    {
168                        this.OnSelectedConfigChanged.Invoke(new ConfigChangedEventArgs(this, this.AcceptedConfig));
169                    }
170                }
171            }
172      }      }
173  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.22