Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
            }
        }
Exemplo n.º 3
0
        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();
        }