Exemplo n.º 1
0
        /// <summary>
        /// 从指定节点处开始播放
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnPlayTourFromIndex_Click(object sender, EventArgs e)
        {
            if (selectPointIndex == -1)
            {
                selectPointIndex = 0;
            }

            if (tour != null)
            {
                tour.Index = selectPointIndex;
                tour.Play();
                isPlaying = true;
            }
        }
Exemplo n.º 2
0
 private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     tour = (ICameraTour)this.dataGridView1.Rows[e.RowIndex].Cells[1].Value;
     if (tour != null && tour.WaypointsNumber > 0)
     {
         tour.Play();
         this.btnPause.Enabled = true;
         this.btnStop.Enabled  = true;
     }
 }