/[RomCheater]/trunk/RomCheater.PluginFramework/Events/ProcessChangedEventArgs.cs
ViewVC logotype

Annotation of /trunk/RomCheater.PluginFramework/Events/ProcessChangedEventArgs.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 684 - (hide annotations) (download)
Mon Jun 17 08:52:54 2013 UTC (7 years, 10 months ago) by william
File size: 1810 byte(s)

1 william 196 using System;
2     using System.Collections.Generic;
3     using System.Linq;
4     using System.Text;
5 william 684 using RomCheater.PluginFramework.Interfaces;
6 william 196
7     namespace RomCheater.PluginFramework.Events
8     {
9    
10     public interface IAcceptsChangedProcess
11     {
12 william 287 event BaseEventHandler<ProcessChangedEventArgs> OnSelectedProcessChanged;
13 william 196 }
14     public interface IProcessChangedEventArgs
15     {
16     int ProcessID { get; }
17     }
18     public class ProcessChangedEventArgs : BaseEventArgs, IProcessChangedEventArgs
19     {
20     public ProcessChangedEventArgs() : this(-1) { }
21 william 323 public ProcessChangedEventArgs(object sender) : this(sender, - 1) { }
22 william 196 public ProcessChangedEventArgs(int pid) : base() { this.ProcessID = pid; }
23 william 323 public ProcessChangedEventArgs(object sender, int pid) : base(sender) { this.ProcessID = pid; }
24 william 196 #region IProcessChangedEventArgs members
25     public int ProcessID { get; private set; }
26     #endregion
27     }
28 william 684
29     public interface IAcceptsChangedConfig
30     {
31     event BaseEventHandler<ConfigChangedEventArgs> OnSelectedConfigChanged;
32     }
33     public interface IConfigChangedEventArgs
34     {
35     IConfigPlugin ConfigPlugin { get; }
36     }
37     public class ConfigChangedEventArgs : BaseEventArgs, IConfigChangedEventArgs
38     {
39     public ConfigChangedEventArgs() : this(-1) { }
40     public ConfigChangedEventArgs(object sender) : this(sender, null) { }
41     public ConfigChangedEventArgs(IConfigPlugin config) : base() { this.ConfigPlugin = config; }
42     public ConfigChangedEventArgs(object sender, IConfigPlugin config) : base(sender) { this.ConfigPlugin = config; }
43     #region IConfigChangedEventArgs members
44     public IConfigPlugin ConfigPlugin { get; private set; }
45     #endregion
46     }
47 william 196 }

  ViewVC Help
Powered by ViewVC 1.1.22