摘要:
本篇以一个案例学习了事件定义的整个过程,如下第一步:定义类型来容纳所有需要发送给事件通知接收者的附加信息using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace EventDemo{ //第一步:定义类型来容纳所有需要发送给事件通知接收者的附加信息 //注意NewMailEventArgs继承制EventArgs class NewMailEventArgs:EventArgs { //注意:私有字段是readonly ... 阅读全文
posted @ 2012-07-04 08:21
焦涛
阅读(232)
评论(0)
推荐(0)
浙公网安备 33010602011771号