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; }
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; }