public virtual void Close() { Stop(); this._closed = true; if (_process != null) { _process.Close(); _process = null; } }
public virtual LTimer Submit() { lock (typeof(RealtimeProcessManager)) { if (_process != null) { RealtimeProcessManager.Get().Delete(_process); } if (_process == null || _process.IsDead()) { _process = new TimerProcess(this); } _process.SetDelay(0); RealtimeProcessManager.Get().AddProcess(_process); } return(this); }
private void stopToolStripMenuItem_Click(object sender, EventArgs e) { TimerProcess.Stop(); TimerDir.Stop(); }