事件怎么调用委托?
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#