Пример #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);
 }