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(); } }); }
private void OnPingPongResponse(object sender, PingPongEventArgs data) { if (PingPongResponse != null) { PingPongResponse(this, data); } }