Beispiel #1
0
        private void ViewChat(object sender, RoutedEventArgs e)
        {
            var chatClient = (ChatClient)((Button)sender).DataContext;
            var popupChat  = PopupChats.Find(pc => pc.ChatClient.ClientId == chatClient.ClientId);

            if (popupChat != null)
            {
                popupChat.Focus();
                return;
            }

            var popup = new PopupChat(chatClient, ChatEngine);

            popup.Closed += Popup_Closed;
            PopupChats.Add(popup);
            popup.Show();
        }
Beispiel #2
0
 /// <summary>
 /// Callback for when the chat button is pressed.
 /// </summary>
 public void OnChatButtonPressed()
 {
     chatPopup.Show();
 }