private void FormSettings_FormClosing(object sender, FormClosingEventArgs e)
        {
            PrepareUnload();

            foreach (SettingsTab tab in tabs.Values)
            {
                if (tab.IsInitialized)
                {
                    tab.Control.Dispose();
                }
            }

            browser.ResumeNotification();
        }
示例#2
0
        private void Callback()
        {
            if (!timeout.Enabled)
            {
                return;
            }

            timeout.Stop();

            browser.PauseNotification();
            screenshot.TakeScreenshotAndHide();
            browser.ResumeNotification();
        }
示例#3
0
        private void FormSettings_FormClosing(object sender, FormClosingEventArgs e)
        {
            foreach (BaseTabSettings control in tabs.Values)
            {
                control.OnClosing();
            }

            Program.UserConfig.Save();

            foreach (BaseTabSettings control in tabs.Values)
            {
                control.Dispose();
            }

            browser.ResumeNotification();
        }