ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.PluginFramework/Events/ProcessChangedEventArgs.cs
Revision: 323
Committed: Thu Jun 7 16:33:41 2012 UTC (10 years, 9 months ago) by william
File size: 928 byte(s)
Log Message:
+ add event for being able to subscribe to PEReader updates

File Contents

# User Rev Content
1 william 196 using System;
2     using System.Collections.Generic;
3     using System.Linq;
4     using System.Text;
5    
6     namespace RomCheater.PluginFramework.Events
7     {
8    
9     public interface IAcceptsChangedProcess
10     {
11 william 287 event BaseEventHandler<ProcessChangedEventArgs> OnSelectedProcessChanged;
12 william 196 }
13     public interface IProcessChangedEventArgs
14     {
15     int ProcessID { get; }
16     }
17     public class ProcessChangedEventArgs : BaseEventArgs, IProcessChangedEventArgs
18     {
19     public ProcessChangedEventArgs() : this(-1) { }
20 william 323 public ProcessChangedEventArgs(object sender) : this(sender, - 1) { }
21 william 196 public ProcessChangedEventArgs(int pid) : base() { this.ProcessID = pid; }
22 william 323 public ProcessChangedEventArgs(object sender, int pid) : base(sender) { this.ProcessID = pid; }
23 william 196 #region IProcessChangedEventArgs members
24     public int ProcessID { get; private set; }
25     #endregion
26     }
27     }