Ejemplo n.º 1
0
        private void btnSend_Click(object sender, RoutedEventArgs e)
        {
            ChatMessage newMessage = new ChatMessage()
            {
                User = MyName, Message = txtMessage.Text, Date = DateTime.Now
            };

            proxy.SendNewMessage(newMessage);
            txtMessage.Text = "";
        }