コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: mfro/LeagueClient
    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
ファイル: MainWindow.xaml.cs プロジェクト: mfro/LeagueClient
    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;
    }