void ActivateDisplayOnlyMode(bool force) { if (SettingsModeActivated || force) { this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Opacity = settings.Opacity; NativeMethodsGWL.ClickThrough(this.Handle); NativeMethodsGWL.HideFromAltTab(this.Handle); moveresize_MouseUp(null, null); // disable all dragging this.bn_close.Visible = false; this.bn_resize.Visible = false; this.bn_settings.Visible = false; this.panel_textposhelper.Visible = false; SettingsModeActivated = false; settings.SaveAll(); } }
private void Settings_FormClosing(object sender, FormClosingEventArgs e) { settings.SaveAll(); }