编程语言
首页 > 编程语言> > C#事件订阅(计时器的EventHandler自己写)如何给计时器Timer的Tick事件传递参数

C#事件订阅(计时器的EventHandler自己写)如何给计时器Timer的Tick事件传递参数

作者:互联网

原文链接:https://blog.csdn.net/wem520/article/details/79992845

来源于:https://blog.csdn.net/wem520/article/details/79992845https://blog.csdn.net/wem520/article/details/79992845 

Timer secAlarmTimer = new Timer();
                    secAlarmTimer.Enabled = true;
                    secAlarmTimer.Interval = 1000;                   
                    secAlarmTimer.Tick += new System.EventHandler((aa,ee) => FstAlamBeginEvent(aa, ee, "", "", ""));





 public void FstAlamBeginEvent(object sender, EventArgs e, string g,string t,string d)

 

标签:EventHandler,secAlarmTimer,string,C#,blog,计时器,details,csdn,wem520
来源: https://blog.csdn.net/Johnisjohn/article/details/98472706