private void FormSettings_FormClosing(object sender, FormClosingEventArgs e) { PrepareUnload(); foreach (SettingsTab tab in tabs.Values) { if (tab.IsInitialized) { tab.Control.Dispose(); } } browser.ResumeNotification(); }
private void Callback() { if (!timeout.Enabled) { return; } timeout.Stop(); browser.PauseNotification(); screenshot.TakeScreenshotAndHide(); browser.ResumeNotification(); }
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(); }