/* * 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); }
public override void Send() { destination.Receive(this); }