示例#1
0
        // 播放结束
        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;
            }
        }
示例#2
0
文件: MainForm.cs 项目: batuZ/Samples
 private void btnStop_Click(object sender, EventArgs e)
 {
     tour.Stop();
     this.btnPause.Enabled = false;
     this.btnStop.Enabled  = false;
 }