Ejemplo n.º 1
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="dataGridView"></param>
 /// <param name="gpsUpdateDelegate"></param>
 /// <param name="speed"></param>
 public Player(DataGridView dataGridView, GPGUpdateDelegate gpsUpdateDelegate, decimal speed)
 {
     this.dataGridView = dataGridView;
     this.gpsUpdateDelegate = gpsUpdateDelegate;
     this.speed = speed;
     saveTick = 0;
     currentRow = 0;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// ログを再生する
        /// </summary>
        private void startPlayer()
        {
            GPGUpdateDelegate gpsUpdateDelegate = new GPGUpdateDelegate(gpsUpdate);
            Player player = new Player(dataGridView, gpsUpdateDelegate, numericUpDownPlaySpeed.Value);

            playerThread = new Thread(new ThreadStart(player.play));
            playerThread.IsBackground = true;
            playerThread.Start();
        }