private void Lobby_Loaded(object sender, EventArgs e) { Dispatcher.Invoke(() => { LoadingGrid.Visibility = Visibility.Collapsed; chat = new ChatRoom(lobby.ChatLobby, SendBox, ChatHistory, SendButt, ChatScroller); }); }
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; }); }
private void Game_Loaded(object sender, EventArgs e) { chatRoom = new ChatRoom(game.ChatLobby, ChatBox, ChatHistory, ChatButt, ChatScroller); }