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