/[RomCheater]/trunk/RomCheater.Core/ProcessChangedEventArgs.cs
ViewVC logotype

Annotation of /trunk/RomCheater.Core/ProcessChangedEventArgs.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 686 - (hide annotations) (download)
Mon Jun 17 09:31:52 2013 UTC (7 years, 4 months ago) by william
File size: 1743 byte(s)
+ massive move of source files

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

  ViewVC Help
Powered by ViewVC 1.1.22