首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
根据委托(delegate)的知识,请完成以下用户控件中代码片段的填写: namespace test { public delegate void OnDBOperate(); public class UserControlBase
根据委托(delegate)的知识,请完成以下用户控件中代码片段的填写: namespace test { public delegate void OnDBOperate(); public class UserControlBase
admin
2019-03-29
153
问题
根据委托(delegate)的知识,请完成以下用户控件中代码片段的填写:
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事件。
}
}
}
}
选项
答案
if( OnNew != null ) OnNew( this, e );
解析
转载请注明原文地址:https://kaotiyun.com/show/WRmZ777K
0
程序员面试
相关试题推荐
OnSeptember19th,nearlyfivemonthsafterthespillstarted,BPfinallysealedtheMacondowell.Anadjoiningreliefwellhad
TheUnitedStatesInterstateHighwaySystemisaninfrastructurefeatofunprecedentedproportions.Notonlydoesitjoinallfi
Weakdollarorno,$46,000—thepriceforasingleyearofundergraduateinstructionamidtheredbrickofHarvardYard—is【C1】__
输入两个整数序列。其中一个序列表示栈的push顺序,判断另一个序列有没有可能是对应的pop顺序。为了简单起见,我们假设push序列的任意两个整数都是不相等的。比如输入的push序列是1、2、3、4、5,那么4、5、3、2、1就有可能是一个pop系列。因
活动目录的作用
什么是SOAP,有哪些应用。
列举一下你所了解的XML技术及其应用
输入一棵二元树的根结点,求该树的深度。从根结点到叶结点依次经过的结点(含根、叶结点)形成树的一条路径,最长路径的长度为树的深度。输出该树的深度3。二元树的结点定义如下:structSBinaryTreeNode//anodeofthe
使用.NETPassport向导注册MSN帐户,姓名为李明,邮件的地址为liming@hotmail.com,密码为123456lm。
打开“记事本”应用程序。
随机试题
将物资底层排列整齐成方形、长方形或环形垛底,然后起脊压缝上码成的货垛是压缝式码垛。
Readingisthoughttobeakindofconversationbetweenthereaderandthetext.Thereaderputsquestions,asitwere,tothet
A.肝B.胆C.脾D.胰E.肾对比剂注入后,呈花斑状的是
FIM评定将ADL分为
负责对有关专业注册造价工程师的注册、执业活动实施监督管理的注册造价工程师部门的初审机关是()。
除填写入境货物报检单外,还需按检疫要求出具的单证有( )。
下列哪种形式属于校内锻炼?()
网络入侵检测系统和防火墙是两种典型的信息系统安全防御技术,下面关于入侵检测系统和防火墙的说法正确的是________。
______theEuropeansbegantolearnhowtousethecompassontheirships.
A、Rentagrave.B、Burnthebody.C、Burythedeadnearachurch.D、Buyapieceoflandforagrave.D
最新回复
(
0
)