internal async static void QuitCurrentGame() { if (OnMessage != null) { foreach (Delegate d in OnMessage.GetInvocationList()) { OnMessage -= (OnMessageHandler)d; } } FixChampSelect(); FixLobby(); IsInGame = false; await PVPNet.QuitGame(); StatusGrid.Visibility = System.Windows.Visibility.Hidden; PlayButton.Visibility = System.Windows.Visibility.Visible; LobbyContent = null; LastPageContent = null; GameStatus = "outOfGame"; SetChatHover(); SwitchPage(new MainPage()); }