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