// 播放结束 void axRenderControl1_RcCameraFlyFinished(byte Type) { if (tour == null) { return; } if (tour.AutoRepeat == false) { tour.Stop(); isPlaying = false; //设置Time滑动条 this.trackBarTime.Value = this.trackBarTime.Maximum; } else { this.dataGridView1.ClearSelection(); this.dataGridView1.Rows[0].Selected = true; //设置Time滑动条 this.trackBarTime.Value = this.trackBarTime.Minimum; } }
private void btnStop_Click(object sender, EventArgs e) { tour.Stop(); this.btnPause.Enabled = false; this.btnStop.Enabled = false; }