Пример #1
0
        /// <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);
        }
Пример #2
0
        /// <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);
        }
Пример #3
0
 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_ExitFullscreen_click(object sender, EventArgs e)
 {
     FullscreenManager.SwitchBack();
 }