当前位置:编程学习 > C#/ASP.NET >>

事件怎么调用委托?

namespace test
{
  public delegate void OnDBOperate();
  public class UserControlBase:System.Windows.Forms.UserContorl
  {
     public event OnDBOperate OnNew;
     private void  toolBar_ButtonClick(objects sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
     {
        if(e.Buttion.Equals(BtnNew))
        {
           //请在以下补齐代码用来调用 OnDBOperate 委托签名的OnNew事件。
        }
     }
  }
} --------------------编程问答-------------------- this.Invoke(new OnDBOperate(OnNew));?? --------------------编程问答-------------------- 没有看出要做什么。。。
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,