日期:2014-05-18 浏览次数:20952 次
public MyEventArgs : EventArgs { public int Value{get;set;} } public delegate void MyEventHandler (MyEventArgs e); public event MyEventHandler MyEvent; protected virtual void DoEvent(MyEventArgs e) { if (MyEvent != null) MyEvent(e); }