1 |
william |
774 |
using System; |
2 |
|
|
using System.Collections.Generic; |
3 |
|
|
using System.Linq; |
4 |
|
|
using System.Text; |
5 |
|
|
|
6 |
|
|
namespace RomCheater.Core |
7 |
|
|
{ |
8 |
|
|
public interface IControlClosingEventArgs<T> |
9 |
|
|
{ |
10 |
|
|
T Args { get; } |
11 |
|
|
} |
12 |
|
|
public class ControlClosingEventArgs<T> : BaseEventArgs |
13 |
|
|
{ |
14 |
|
|
public ControlClosingEventArgs() :this(null) { } |
15 |
|
|
public ControlClosingEventArgs(object sender) : this(sender, default(T)) { } |
16 |
|
|
public ControlClosingEventArgs(object sender, T args) : base(sender) { this.Args = args; } |
17 |
|
|
#region IControlClosingEventArgs<T> Members |
18 |
|
|
private T _Args; |
19 |
|
|
public T Args { get { return _Args; } private set { _Args = value; } } |
20 |
|
|
#endregion |
21 |
|
|
} |
22 |
|
|
} |