Пример #1
0
 public void ping_PingPongResponse(object sender, PingPongEventArgs ppea)
 {
     Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         if (ppea.Message is PCOSMsgPong)
         {
             PCOSMsgPong pong = (PCOSMsgPong)ppea.Message;
             this.pong.Text = pong.PongTime.ToString();
         }
     });
 }
Пример #2
0
 private void OnPingPongResponse(object sender, PingPongEventArgs data)
 {
     if (PingPongResponse != null)
     {
         PingPongResponse(this, data);
     }
 }