Exemplo n.º 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();
        }
    protected override void Start()
    {
        base.Start();

        chatPopup = GameObject.Find("PopupChat").GetComponent <PopupChat>();
    }