/// <summary> /// Maximize and removes Interface and start timer for slideshow. /// </summary> internal static void StartSlideshow() { if (Pics.Count == 0) { return; } UC.Close_UserControls(); if (SlideTimer == null) { SlideTimer = new Timer() { Interval = Properties.Settings.Default.SlideTimer, Enabled = true }; SlideTimer.Elapsed += SlideTimer_Elapsed; SlideTimer.Start(); } else { SlideTimer.Start(); } if (!Properties.Settings.Default.Fullscreen) { Fullscreen_Restore(true); } _ = NativeMethods.SetThreadExecutionState(NativeMethods.ES_CONTINUOUS | NativeMethods.ES_DISPLAY_REQUIRED); // Stop screensaver when running }
/// <summary> /// Maximize and removes Interface and start timer for slideshow. /// </summary> internal static void StartSlideshow() { if (Pics.Count == 0) { return; } UC.Close_UserControls(); if (SlideTimer == null) { SlideTimer = new Timer() { Interval = Properties.Settings.Default.SlideTimer, Enabled = true }; SlideTimer.Elapsed += SlideTimer_Elapsed; SlideTimer.Start(); } else { SlideTimer.Start(); } if (ConfigureWindows.GetMainWindow.WindowState == WindowState.Normal) { ConfigureWindows.RenderFullscreen(); } _ = NativeMethods.SetThreadExecutionState(NativeMethods.ES_CONTINUOUS | NativeMethods.ES_DISPLAY_REQUIRED); // Stop screensaver when running HideInterfaceLogic.ShowNavigation(false); HideInterfaceLogic.ShowShortcuts(false); }
/// <summary> /// Toggle between hidden interface and default /// </summary> internal static void ToggleInterface() { if (Properties.Settings.Default.PicGallery == 2 && GalleryFunctions.IsOpen) { return; } // Hide interface if (Properties.Settings.Default.ShowInterface) { ShowMinimalInterface(); } // Show interface else { ShowStandardInterface(); } UC.Close_UserControls(); }