这将创建一个事件处理程序实例的局部变量。
This creates a variable that is local to the event handler instance.
我为这个事件添加了一个类型为公共变量的参数TimeEntry。
I add an argument for the event as a public variable of type TimeEntry.
我留下了其它两种方法:全局变量和事件对象。
I left out two other methods: global variable and event object.
不要公开事件成员变量。使用事件访问器来公开。
Do not provide public event member variables. Use event accessors instead.
不要公开事件成员变量。
不要公开事件成员变量。
应用推荐