예제 #1
0
        private void Champselect_ChampSelectCompleted(object sender, EventArgs e)
        {
            if (Thread.CurrentThread != Dispatcher.Thread)
            {
                Dispatcher.MyInvoke(Champselect_ChampSelectCompleted, sender, e); return;
            }

            ShowLandingPage();

            champselect.ChampSelectCompleted -= Champselect_ChampSelectCompleted;
            champselect = null;
        }
예제 #2
0
        public void BeginChampionSelect(GameLobby game)
        {
            if (Thread.CurrentThread != Dispatcher.Thread)
            {
                Dispatcher.MyInvoke(BeginChampionSelect, game); return;
            }

            LoLClient.QueueManager.ShowPage(new InGamePage(true));
            champselect = new ChampSelectPage(game);

            champselect.ChampSelectCompleted += Champselect_ChampSelectCompleted;

            ContentFrame.Content = champselect;
            Session.Current.ChatManager.Status = ChatStatus.championSelect;
        }