コード例 #1
0
 private void Lobby_Loaded(object sender, EventArgs e) {
   Dispatcher.Invoke(() => {
     LoadingGrid.Visibility = Visibility.Collapsed;
     chat = new ChatRoom(lobby.ChatLobby, SendBox, ChatHistory, SendButt, ChatScroller);
   });
 }
コード例 #2
0
    private void Lobby_Loaded(object sender, EventArgs e) {
      queueTimer = new QueueController(QueueTimeLabel, ChatStatus.inQueue, lobby.IsCaptain ? ChatStatus.hostingNormalGame : ChatStatus.outOfGame);
      Session.Current.ChatManager.Status = lobby.IsCaptain ? ChatStatus.hostingNormalGame : ChatStatus.outOfGame;

      Dispatcher.Invoke(() => {
        chatRoom = new ChatRoom(lobby.ChatLobby, SendBox, ChatHistory, ChatSend, ChatScroller);
        LoadingGrid.Visibility = Visibility.Collapsed;
        StartButton.Visibility = lobby.IsCaptain ? Visibility.Visible : Visibility.Hidden;
      });
    }
コード例 #3
0
 private void Game_Loaded(object sender, EventArgs e) {
   chatRoom = new ChatRoom(game.ChatLobby, ChatBox, ChatHistory, ChatButt, ChatScroller);
 }