今天和随风讨论了一下,通过这个例子明白:
public delegate void MouseClickedEventHandler() ; //委托
public class Mouse
{
public static event MouseClickedEventHandler MouseClicked ;
private void InitializeComponent()
{
Mouse.MouseClicked += new MouseClickedEventHandler(MouseClickedClientMethod) ; //事件句柄
}
private void MouseClickedClientMethod(object sender, System.EventArgs e) //事件
{
......
}
}