void alertClient_ServiceAlertReceived(AlertClient sender, ServiceAlertMsg ServiceAlertMsg) { Action action = () => { txtMsg.AppendText(string.Format("Service Send Alert: {0}\r\n", ServiceAlertMsg)); }; this.BeginInvoke(action); }
//----------20131226 1155 private void OnServiceAlertReceived(ServiceAlertMsg serviceAlertMsg) { if (this.ServiceAlertReceived != null) this.ServiceAlertReceived(this, serviceAlertMsg); }