日期:2014-05-18 浏览次数:20920 次
private System.Timers.Timer timer; protected override void OnStart(string[] args) { Thread.Sleep(30000); this.timer = new System.Timers.Timer(); this.timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed); this.timer.Interval = 1000; this.timer.AutoReset = true; this.timer.Enabled = true; } void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { }