public void saveSettings() { ini.IniWriteValue(gameID, "classicmusic", chkClassic.IsChecked.ToString()); ini.IniWriteValue(gameID, "expmusic", chkExpansion.IsChecked.ToString()); ini.IniWriteValue(gameID, "musicvol", Math.Floor(musicVolume).ToString()); spawnChat.closeSettings(); }
public void saveSettings() { ini.IniWriteValue("D2DV", "char", avChar.ToString()); ini.IniWriteValue("D2DV", "armor", avArmor.ToString()); spawnChat.updateUserAvatar(avChar, avArmor); spawnChat.closeSettings(); }
private void btnCancel_Click(object sender, RoutedEventArgs e) { cbtnCancel.dePress(); spawnChat.closeSettings(); windowTitle = tempTitle; chat.selectMsgBox(); }
private void Window_Closed(object sender, EventArgs e) { spawnChat.closeSettings(); spawnChat.DoDisconnect(); if (exitOnQuit) { Application.Current.Shutdown(); } else { try { mw.Show(); } catch (InvalidOperationException ex) { Console.WriteLine("MainWindow failed to show, probably because you exited. It's cool, don't worry."); } } }