摘要: 多窗体通讯使用 如下图 点击从窗体 多窗体动态改变label标签的值 步骤1: 1.委托使用三部曲: //[1]声明委托(根据委托实际需求定义) public delegate void ShowCounterDelegate(string Counter); //[2]根据委托定义方法 priva 阅读全文
posted @ 2017-01-10 22:02 守望J 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 委托使用分四步 //[1]声明委托(定义一个函数的原型,返回值+参数类型和个数) public delegate int CaculatorDelegate(int a,int b); //[2]根据委托定义一个具体方法实现加法功能 static int Add(int a,int b) { ret 阅读全文
posted @ 2017-01-10 21:50 守望J 阅读(115) 评论(0) 推荐(0) 编辑
摘要: //对已有方法进行重写public override void VerifyRenderingInServerForm(Control control) { }//设置文件名 string fileName = DateTime.Now.ToString("yyyyMMddHHmmss"); //HTTP请求内容 System.Web.HttpContext curContext = System.Web.HttpContext.Current; // 输出文件流 Sys... 阅读全文
posted @ 2014-03-06 09:45 守望J 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 上班第七天,每天看着文档,英文不好是硬伤,只能挂着金山,大家都好忙,我百度更忙,工作得靠自己,多看点视频,书也有错的时候 阅读全文
posted @ 2014-03-05 19:47 守望J 阅读(116) 评论(0) 推荐(0) 编辑