/// <summary> /// Ensures that the main form is visible (either closing the fullscreen mode or reactivating from task icon). /// </summary> public void EnsureMainFormVisible() { //Reset special modes FullscreenManager.SwitchBack(); //Restore main form in a platform-dependent method Program.Platform.RestoreForm(this); }
/// <summary> /// Ensures that the main form is visible (either closing the fullscreen mode or reactivating from task icon). /// </summary> public void EnsureMainFormVisible() { //Reset special modes FullscreenManager.SwitchBack(); ClickThroughEnabled = false; Opacity = 1.0; //Restore main form in a platform-dependent method Program.Platform.RestoreForm(this); }
private void Menu_Reduce_click(object sender, EventArgs e) { //Hide form in a platform specific way FullscreenManager.SwitchBack(); if (!Program.Platform.IsHidden(this)) { Program.Platform.HideForm(this); } else { EnsureMainFormVisible(); //Program.Platform.RestoreForm(this); } }
private void Menu_Fullscreen_Mode_AllScreens_click(object sender, EventArgs e) { Settings.Default.SetFullscreenMode(FullscreenMode.AllScreens); FullscreenManager.SwitchFullscreen(FullscreenMode.AllScreens); }
private void Menu_Fullscreen_Mode_Standard_click(object sender, EventArgs e) { Settings.Default.SetFullscreenMode(FullscreenMode.Standard); FullscreenManager.SwitchFullscreen(FullscreenMode.Standard); }
private void Menu_Fullscreen_ExitFullscreen_click(object sender, EventArgs e) { FullscreenManager.SwitchBack(); }
private void Menu_Resize_Fullscreen(object sender, EventArgs e) { FullscreenManager.SwitchFullscreen(); }