コード例 #1
0
 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();
 }
コード例 #2
0
 public void saveSettings()
 {
     ini.IniWriteValue("D2DV", "char", avChar.ToString());
     ini.IniWriteValue("D2DV", "armor", avArmor.ToString());
     spawnChat.updateUserAvatar(avChar, avArmor);
     spawnChat.closeSettings();
 }
コード例 #3
0
 private void btnCancel_Click(object sender, RoutedEventArgs e)
 {
     cbtnCancel.dePress();
     spawnChat.closeSettings();
     windowTitle = tempTitle;
     chat.selectMsgBox();
 }
コード例 #4
0
 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.");
         }
     }
 }