예제 #1
0
        private void axWindowsMediaPlayer2_StatusChange(object sender, EventArgs e)
        {
            //判断视频是否已停止播放
            if ((int)axWindowsMediaPlayer2.playState == 1)
            {
                //重新播放
                //windowsMediaPlay.Ctlcontrols.play();
                this.videothread = new Thread(new ThreadStart(this.VideoClose)); //另开线程安全改变控件可见性
                this.videothread.Start();

                System.Threading.Thread.Sleep(200); //停顿2秒钟
                                                    //子窗体展示
                Form_difficulty f3 = new Form_difficulty();
                f3.MdiParent     = this;
                f3.StartPosition = FormStartPosition.CenterScreen;
                f3.Show();
                SetParent((int)f3.Handle, (int)this.Handle);
                //string file2d = @"res\china\china.mxd";
                //axMapControl1.LoadMxFile(file2d);
                //axMapControl1.Extent = axMapControl1.FullExtent;
                // string file3d = @"res\china3d\china3d.sxd";
                //axSceneControl1.LoadSxFile(file3d);
            }
            else if ((int)axWindowsMediaPlayer2.playState == 3)
            {
                axWindowsMediaPlayer2.fullScreen = true;
            }
        }
예제 #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            //难度展示
            Form_difficulty f3 = new Form_difficulty();

            f3.MdiParent     = this;
            f3.StartPosition = FormStartPosition.CenterScreen;
            f3.Show();
            SetParent((int)f3.Handle, (int)this.Handle);
        }
예제 #3
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            //难度展示
            // axWindowsMediaPlayer2.URL = @"res\3d.mp4";//连接视频
            Form_difficulty f3 = new Form_difficulty();

            f3.MdiParent     = this;
            f3.StartPosition = FormStartPosition.CenterScreen;
            f3.Show();
            SetParent((int)f3.Handle, (int)this.Handle);
        }