void alertClient_ServiceReadyReceived(AlertClient sender, ServiceReadyMsg ServiceReadyMsg) { Action action = () => { txtMsg.AppendText(string.Format("Service Ack: {0}\r\n", ServiceReadyMsg)); }; this.BeginInvoke(action); }
//----------20131203 1515 //----------20131218 0940 private void OnServiceReadyReceived(ServiceReadyMsg serviceReadyMsg) { if (this.ServiceReadyReceived != null) this.ServiceReadyReceived(this, serviceReadyMsg); }