private void btnSend_Click(object sender, EventArgs e) { var message = string.Format("message at {0}", DateTime.Now.ToString("HH:mm:ss")); txbSendMsg.Text = message; EventModelArgs<string> args = new EventModelArgs<string>(); args.Data = message; if (MessageArrived != null) MessageArrived(this, args); }
private void btnSend_Click(object sender, EventArgs e) { var message = string.Format("message at {0}", DateTime.Now.ToString("HH:mm:ss")); txbSendMsg.Text = message; EventModelArgs <string> args = new EventModelArgs <string>(); args.Data = message; if (MessageArrived != null) { MessageArrived(this, args); } }
public void MessageReceived(object sender, EventModelArgs<string> message) { PrintOut(message.Data); }
public void MessageReceived(object sender, EventModelArgs <string> message) { PrintOut(message.Data); }