private void ReplayStop() { if (_logSound != null) { _logSound.Stop(); _logSound = null; } if (_logReader != null) _logReader.Stop(); ReplayRunning = false; btPlayPause.Image = Resources.Play_icon; }
private void ReplaySoundStart(object n) { if (this.InvokeRequired) { this.Invoke(new WaitCallback(ReplaySoundStart), new object[1] {n}); return; } if (_logReader != null) { _logSound = new ReplaySFX(this, _logReader); _logReader.Start(); Timer t = new Timer(); t.Interval = 50; t.Tick += (e, b) => { }; t.Start(); } }