/// <summary> /// 画面接收 /// </summary> /// <param name="client"></param> /// <param name="data"></param> public void OnReceive(ClientInfo client, SendData data) { Write(string.Format("{0} ->[OnReceive] sendData({1},{2})", client.IpAddress, data.Order, data.Message)); if (!string.IsNullOrEmpty(data.image)) { Bitmap bit = ImageConversion.Base64StringToBitmap(data.image); pictureBox1.Image = ImageConversion.Base64StringToBitmap(data.image); } if (data.IORInfoL != null) { if (data.IORInfoL.Count > 0) { this.pictureBox2.Image = ImageConversion.BytesToBitmap(data.IORInfoL[0].SceneImage); if (data.PInfoL.Count > 0) { this.pictureBox3.Image = ImageConversion.BytesToBitmap(data.PInfoL[0].FaceImage); this.label_name.Text = data.PInfoL[0].Name; this.label_card.Text = data.PInfoL[0].IDCard; this.label_throughWay.Text = data.IORInfoL[0].InOutType == "InOutType_00" ? "进" : "出"; this.label_time.Text = data.IORInfoL[0].InOutTime.ToString("yyyy年MM月dd日 HH:mm:ss"); } } } }