/// <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; } }
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; } }