#region 延时方法非阻塞, thread sleep会阻塞导致界面无法显示
public static void Delay(int mm)
{
DateTime current = DateTime.Now;
while (current.AddMilliseconds(mm) > DateTime.Now)
{
Application.DoEvents();
}
return;
}
#endregion
延时方法非阻塞, thread sleep会阻塞导致界面无法显示
猜你喜欢
转载自blog.csdn.net/guoruijun_2012_4/article/details/100115896
今日推荐
周排行