- namespace test
- {
- public delegate void OnDBOperate();
- public class UserControlBase : System.Windows.Forms.UserControl
- {
- public event OnDBOperate OnNew;
- privatevoidtoolBar_ButtonClick(objectsender,System.Windows.Forms.ToolBarButtonClickEventArgs e)
- {
- if(e.Button.Equals(BtnNew))
- {
- //请在以下补齐代码用来调用OnDBOperate委托签名的OnNew事件。
- }
- }
- }
复制代码 |
|