CSPspEmu.Gui.Winforms.PspDisplayForm.SetFullScreen C# (CSharp) Method

SetFullScreen() private method

private SetFullScreen ( bool SetFullScreen ) : void
SetFullScreen bool
return void
        private void SetFullScreen(bool SetFullScreen)
        {
            IsFullScreen = SetFullScreen;
            if (SetFullScreen)
            {
                //this.TopMost = true;
                this.TopMost = false;
                this.MainMenuStrip.Visible = false;
                this.FormBorderStyle = FormBorderStyle.None;
                this.MaximumSize = new Size(4096, 4096);
                this.WindowState = FormWindowState.Maximized;
                //Cursor.Hide();
                Cursor.Show();
            }
            else
            {
                this.MainMenuStrip.Visible = true;
                this.TopMost = false;
                this.FormBorderStyle = FormBorderStyle.Sizable;
                this.MaximumSize = new Size(4096, 4096);
                this.WindowState = FormWindowState.Normal;
                Cursor.Show();
            }
        }
PspDisplayForm