コード例 #1
0
        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());
        }
コード例 #2
0
ファイル: MessageSource.cs プロジェクト: LightBDD/LightBDD
 public Delegate[] GetInvocationList() => OnMessage?.GetInvocationList() ?? Array.Empty <Delegate>();