示例#1
0
        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);
        }
示例#2
0
        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);
            }
        }
示例#3
0
 public void MessageReceived(object sender, EventModelArgs<string> message)
 {
     PrintOut(message.Data);
 }
示例#4
0
 public void MessageReceived(object sender, EventModelArgs <string> message)
 {
     PrintOut(message.Data);
 }