Exemplo n.º 1
0
        void btn_Send_Click(object sender, RoutedEventArgs e)
        {
            if (txbMessage.Text != string.Empty)
            {
                Server.SendtoAll(txbMessage.Text, tb_Name.Text);
                TakeMessage_sent(txbMessage.Text, "You");

                txbMessage.Clear();
                sc_chatbox.ScrollToBottom();

                list_User.Children.Clear();
                LoadUserList(Server.GetCurrrentUserList());
            }
        }