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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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

  ViewVC Help
Powered by ViewVC 1.1.22