VB.net 2010 视频教程 VB.net 2010 视频教程 python基础视频教程
SQL Server 2008 视频教程 c#入门经典教程 Visual Basic从门到精通视频教程
当前位置:
首页 > temp > C#教程 >
  • c#中的事件初步使用

制作者:剑锋冷月 单位:无忧统计网,www.51stat.net
 

public delegate void actioneventhandle(object sender, EventArgs e);
2public static actioneventhandle action;
3protected void onaction(object sender, EventArgs e)
4{if (e != null){action(sender, e);}}
5public void aa(object sender, EventArgs e){…}
6private void Form1_Load(object sender, EventArgs e)
7{action += new actioneventhandle(aa);
8onaction(sender, e);}
9



相关教程