定时访问问题求助???? 事件促发的过程: A 向 服务器提交记录,提交完毕后就打印。。 但是 可能也是B,C,D或更多的记录同时提交,提交后也要分别打印出来。 我怎样自动去判断有记录提交!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 比如你可以设计一个数据结构,比如Collection,专门用于收集客户端提交的记录,然后在Collection中重载Add函数,然后在Add中触发一个事件:比如: public delegate void CollectionEvent(object sender, object item); public class UICollectionWithEvent<T> : System.Collections.CollectionBase { public event CollectionEvent AddEvent = null; public void Add(T item) { List.Add(item); if (this.AddEvent != null) { this.AddEvent(this, item); } } } Discuz注册接口有人知道没怎么写弄 关于commandtext中使用了sql内置函数的问题 如何利用循环控制控件属性?? 如何得到引用(Reference)的Runtime Version? 关于C#调用DLL的一些问题。 怎样读取远程共享目录下某个ini HttpListener获取到IE提交的中文参数乱码 图象放缩问题 C#如何将dgv插入到word? 高分紧急求援: 创建活动目录用户正常, 但在创建Exchange信箱时出错(C#)? 谢谢!!! 时间问题 C#如何释放当前正在使用的COM端口
比如:
public delegate void CollectionEvent(object sender, object item); public class UICollectionWithEvent<T> : System.Collections.CollectionBase
{
public event CollectionEvent AddEvent = null; public void Add(T item)
{
List.Add(item);
if (this.AddEvent != null)
{
this.AddEvent(this, item);
}
}
}