public void Stop() { if (!this.running) { return; } if (timer != null) { timer.Enabled = false; //是否执行System.Timers.Timer.Elapsed事件; } this.running = false; }