示例#1
0
        private void cmbGraphics_Click(object sender, EventArgs e)
        {
            cmbGraphics.Enabled = false;

            frmVideoRender videoRender = new frmVideoRender();

            videoRender.Visible = true;
            videoRender.Activate();
        }
示例#2
0
        private void toggleVideoPortal()
        {
            if (globalSettings.videoPortal == false)
            {
                DialogResult fullScreenDialog = new DialogResult();
                fullScreenDialog = System.Windows.Forms.MessageBox.Show("Do you want to launch the video portal in full screen?", "Full Screen?", MessageBoxButtons.YesNoCancel);

                switch (fullScreenDialog)
                {
                case DialogResult.Yes:
                    globalSettings.videoPortal_FullScreen = true;
                    break;

                case DialogResult.No:
                    globalSettings.videoPortal_FullScreen = false;
                    break;

                case DialogResult.Cancel:
                    return;
                    //break;
                }


                // Can't handle two video portals
                //globalSettings.videoPortal = true;
                videoToolStripMenuItem.Checked = true;

                // Mark that the video portal still shouldn't start rendering yet
                globalSettings.videoPortal_eRenderReady = false;

                videoRender         = new frmVideoRender();
                videoRender.Visible = true;
                videoRender.Activate();
            }
            else
            {
                System.Windows.Forms.MessageBox.Show("Currently closing the Video Portal after it has been opened is not supported", "Closing the video portal not supported");

                //// Close video portals
                //globalSettings.videoPortal = false;
                //videoToolStripMenuItem.Checked = false;
                //globalSettings.videoPortal_eRenderReady = false;

                //videoRender.Close();
            }
        }