예제 #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;
            }
        }
예제 #2
0
파일: MainForm.cs 프로젝트: batuZ/Samples
 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;
     }
 }