定时器的写法 winform

时间:2017-08-18 18:17:45   收藏:0   阅读:332

 

private void timer1_Tick(object sender, EventArgs e)
{

 

if ( tttttflag)
{
Action action = SyncCompanyJJ;
action.BeginInvoke(null, null);
}

}

 

tttttflag 方法体内 对该字段进行锁定  开始时候为false 完成时为for 

原文:http://www.cnblogs.com/muxueyuan/p/7390812.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!