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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 539 - (hide annotations) (download)
Wed Jun 5 10:35:29 2013 UTC (7 years, 11 months ago) by william
File size: 860 byte(s)

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     public interface IBaseEventArgs
9     {
10     object Sender { get; set; }
11     }
12 william 521 public class BaseEventArgs : EventArgs, IBaseEventArgs
13 william 196 {
14 william 539 //static BaseEventArgs() { Empty = new BaseEventArgs(); }
15     //public static readonly BaseEventArgs Empty;
16 william 196 public BaseEventArgs() :this(new object()) { }
17     public BaseEventArgs(object sender) { Sender = sender; }
18     #region IBaseEventArgs members
19     public object Sender { get; set; }
20     #endregion
21     }
22     [Serializable]
23     public delegate void BaseEventHandler(BaseEventArgs e);
24     [Serializable]
25     public delegate void BaseEventHandler<TEventArgs>(TEventArgs e) where TEventArgs : BaseEventArgs;
26     }

  ViewVC Help
Powered by ViewVC 1.1.22