private void OnClosing(object sender, System.ComponentModel.CancelEventArgs e) { PokeManager.Settings.DisableChangesWhileLoading = true; PokeManager.Settings.IsMuted = newMuted; PokeManager.Settings.Volume = newVolume; PokeManager.Settings.DisableChangesWhileLoading = false; PokeManager.SaveSettings(); }
private void OnWindowClosing(object sender, System.ComponentModel.CancelEventArgs e) { PokeManager.SaveSettings(); PokeManager.RefreshUI(); }