Exemple #1
0
        /*
         * Send the contents of the message box to the chatroom
         */
        protected void SendButtonClick(object sender, EventArgs e)
        {
            ChatMessage newMsg = new ChatMessage(cr);

            newMsg.Source         = currentUser;
            newMsg.MessageContent = MessageBox.Text;
            MessageBox.Text       = "";
            newMsg.SendTime       = DateTime.Now;
            cr.Receive(newMsg);
        }
Exemple #2
0
 public override void Send()
 {
     destination.Receive(this);
 }