protected void OnDataChanged(object sender, DataChangeEventArgs e) { if (DataChange != null) { DataChange(sender, e); } }
protected void ConnetSever(object sender, DataChangeEventArgs e) { if (ConnectionServerHandle != null) { ConnectionServerHandle(sender, e); } }
private void LiveVehiclePacketHandleDataChange(object sender, DataChangeEventArgs e) { var livePacketHandle = (LiveRecognizerVehiclePacketHandle)sender; if (livePacketHandle == null) return; //������� ShowLiveVehicle(livePacketHandle); }
private void LiveRegognizerFacePacketHandleDataChange(object sender, DataChangeEventArgs e) { var livePacketHandle = (LiveRecognizerFacePacketHandle)sender; if (livePacketHandle == null) return; //������Ƶ //ShowLiveVideo(livePacketHandle); }
private void LiveFacePacketHandleDataChange(object sender, DataChangeEventArgs e) { if (radioGroupFace.SelectedIndex==0) { var livePacketHandle = (LiveRecognizerFacePacketHandle)sender; if (livePacketHandle == null) return; //�������� ShowLiveFace(livePacketHandle); } }
private void LiveDecoderPacketHandleDataChange(object sender, DataChangeEventArgs e) { var livePacketHandle = (LiveDecoderPacketHandle)sender; if (livePacketHandle == null) return; //������Ƶ ShowLiveVideo(livePacketHandle); }
private void GtpConnectionServerHandle(object sender, DataChangeEventArgs e) { bool isConnect = Convert.ToBoolean(e.Name); if (isConnect) { ThreadPool.QueueUserWorkItem(obj => _getTransPacket.GetData(), null); ShowConnectionInfo(e.Ip, true); } else { ShowConnectionInfo(e.Ip, false); } }