public GPSDataStreamWnd(GPSDataStream dataStream, ILogger logger)
        {
            InitializeComponent();
            this.dataStream = dataStream;
            this.MainForm   = (MainForm)this.MdiParent;
            this.logger     = logger;
            if ((dataStream.Positions == null) || dataStream.Positions.Count() == 0)
            {
                dataStream.LoadPositionFile(logger);
            }

            InitMap();

            // seek to first GPS fix
            int i = 0;

            foreach (GPSPositionDataLine dataLine in dataStream.Positions)
            {
                if (dataLine.Quality == 1)
                {
                    SetFrame(i);
                    break;
                }
                i++;
            }
        }
 private void reloadPositionsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     dataStream.LoadPositionFile(logger);
 }