今天和随风讨论了一下,通过这个例子明白:

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)          //事件
    {
              ......
    }
}

 

posted on 2004-10-27 16:39  apple  阅读(1259)  评论(0编辑  收藏  举报