protected override void OnClosed(EventArgs e) { base.OnClosed(e); _ = lightsManager.ResetLights(); Settings.Default.MainWindowPosition = Location; Settings.Default.Save(); }