private void btExitGame_Click(object sender, EventArgs e) { Function.SoundManager.PlayButtonSound(); player.Settings.ThisVersion = (Function.ServerManagement.GetRunningVersion()).ToString(); ServerManagement.Saveplayers("players.xml", playerlist, player); ServerManagement.ExportToFolder(Path.Combine(Environment.SpecialFolder.MyDocuments.ToString(), "/The Legend of Eiwar/players.xml"), playerlist); Function.SoundManager.StopMainMenuMusic(); this.Close(); }