日期:2014-05-18 浏览次数:21118 次
if (sendtime > DateTime.Now) { if (timer == null) timer = new System.Timers.Timer(); timer.Interval = sendtime.Subtract(DateTime.Now).TotalMilliseconds; timer.Enabled = true; timer.AutoReset = false; timer.Elapsed += new ElapsedEventHandler(timer_Elapsed); }