Beispiel #1
0
        private void stopToolStripMenuItem_Click(object sender, EventArgs e)
        {
            timerSlideShow.Enabled = false;
            ToggleSlideshowMenuState();

            //Enable screensaver
            ScreenSaver.Enable();
        }
Beispiel #2
0
        private void FormMain_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (!AllowApplicationExit())
            {
                e.Cancel = true;
                return;
            }

            if (!ScreenSaver.ScreenSaverEnabled)
            {
                ScreenSaver.Enable();
            }

            timerSlideShow.Enabled = false;
            _bookmarkService.SaveBookmarks();
            _applicationSettingsService.UpdateOrInsertFormState(RestoreFormState.GetFormState(this));
            _applicationSettingsService.SetSettingsStateModified();
            _applicationSettingsService.SaveSettings();
        }