摘要: 代码实现://定义一个无参无返回值的委托 public delegate void RelationDelegate(); public abstract class EventAbstractClass { //声明该委托的事件 public event RelationDelegate RelationEvent; /// <summary> /// 执行事件 /// </summary> public void DoEvent() { //当事件有关联方法时,执行该事件 if (this.RelationEvent != null) this.RelationEv 阅读全文
posted @ 2010-12-16 14:44 程序&人生 阅读(471) 评论(0) 推荐(0) 编辑