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