private void OpenFile(string datafile) { ReplayStop(); Task t = new Task(() => { try { //_logReader = new TelemetryLogReader(datafile); _logReader = new TelemetryLogReplay(datafile); _logReader.Read(); while (_logReader.Progress == 0) { ; } while (_logReader.Progress != 1000) { ; } TelemetryFile = datafile; GraphFill(); DrawPlotbounds(); _logReader.Start(); } catch (Exception ex) { _logReader = null; } }); t.Start(); }
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(); } }
private void OpenFile(string datafile) { ReplayStop(); Task t = new Task(() => { try { //_logReader = new TelemetryLogReader(datafile); _logReader = new TelemetryLogReplay(datafile); _logReader.Read(); while (_logReader.Progress == 0) ; while (_logReader.Progress != 1000) ; TelemetryFile = datafile; GraphFill(); DrawPlotbounds(); _logReader.Start(); } catch(Exception ex) { _logReader = null; } }); t.Start(); }