c# 事件传参
来源:互联网 发布:js 数组遍历运行不同步 编辑:程序博客网 时间:2024/05/20 13:07
public class SeatChoosenEventArgs : EventArgs { public 呼叫中心工号核对表Entity SeatChoosen; } public partial class UCSeatIcon : UserControl{ private 呼叫中心工号核对表Entity _entity;
public event EventHandler<SeatChoosenEventArgs> SeatChoosenEvent; private void pictureBox1_Click(object sender, EventArgs e) { if (SeatChoosenEvent != null) { SeatChoosenEvent(this, new SeatChoosenEventArgs() { SeatChoosen = _entity }); } } }
public partial class UCSeatDetailNew : UserControl{ UCSeatIcon1.SeatChoosenEvent += UCSeatChoose_SeatChoosenEvent; public void UCSeatChoose_SeatChoosenEvent(object sender, SeatChoosenEventArgs e) { //if (SeatChoosenEvent != null) //{ // SeatChoosenEvent(sender, e); //} 呼叫中心工号核对表Entity t = e.SeatChoosen; UCSeatIcon seatIcon = (UCSeatIcon)sender; ActivePeople(seatIcon); }}
阅读全文
0 0
- c# 事件传参
- c#事件
- c#事件
- C#事件
- c#事件
- C#事件
- C#事件
- c#事件
- C#事件
- c#事件
- C#事件
- c#事件
- C#事件
- c# 事件
- C#事件
- C#事件
- C# 事件
- C#事件
- HAWQ + MADlib 玩转数据挖掘之(六)——主成分分析与主成分投影
- 可扩展的事件复用技术:epoll和kqueue
- spring abstract = “true” 抽象bean及继承(模板)
- sqlldr工具的详细使用和语法学习
- 一个工程跳到另一个工程
- c# 事件传参
- Ubuntu下 navicat 界面 乱码的解决方法
- ios视频直播
- python简单教程网盘地址在哪?
- 抽奖转盘实现 surfaceView
- 最小费用最大流问题
- jmeter 参数化、检查点、集合点、设置关联
- 万维链概括
- IIS7.0 Application Request Routing 负载均衡、代理