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 |
|
|
BaseEventHandler<ProcessChangedEventArgs> OnSelectedProcessChanged { get; set; } |
12 |
|
|
} |
13 |
|
|
public interface IProcessChangedEventArgs |
14 |
|
|
{ |
15 |
|
|
int ProcessID { get; } |
16 |
|
|
} |
17 |
|
|
public class ProcessChangedEventArgs : BaseEventArgs, IProcessChangedEventArgs |
18 |
|
|
{ |
19 |
|
|
public ProcessChangedEventArgs() : this(-1) { } |
20 |
|
|
public ProcessChangedEventArgs(object sender) : this(-1, sender) { } |
21 |
|
|
public ProcessChangedEventArgs(int pid) : base() { this.ProcessID = pid; } |
22 |
|
|
public ProcessChangedEventArgs(int pid, object sender) : base(sender) { this.ProcessID = pid; } |
23 |
|
|
#region IProcessChangedEventArgs members |
24 |
|
|
public int ProcessID { get; private set; } |
25 |
|
|
#endregion |
26 |
|
|
} |
27 |
|
|
} |