/// <summary> /// 车牌识别结果 /// </summary> /// <param name="ChIp"></param> /// <param name="ChLicesen"></param> /// <param name="ChColor"></param> /// <param name="ChTime"></param> public void PlateResult(string ChIp, string ChLicesen, string ChColor, DateTime ChTime) { if (TimeTextBox.InvokeRequired) { TimeTextBox.Invoke(new UpdatePlate(PlateResult), new object[] { ChIp, ChLicesen, ChColor, ChTime }); } else { TimeTextBox.Text = ChTime.ToString("yyyy-MM-dd HH:mm:ss"); IpTextBox.Text = ChIp; PlateTextBox.Text = ChLicesen; ColorTextBox.Text = ChColor; } }
/// <summary> /// 车牌结果 /// </summary> /// <param name="Ip"></param> /// <param name="Plate"></param> /// <param name="Color"></param> /// <param name="Time"></param> private void PlateDataInfoOut(string Ip, string Plate, string Color, string Time) { if (TimeTextBox.InvokeRequired) { TimeTextBox.Invoke(new PlateDataDelegate(PlateDataInfoOut), new object[] { Ip, Plate, Color, Time }); } else { TimeTextBox.Text = Time; IpTextBox.Text = Ip; PlateTextBox.Text = Plate; ColorTextBox.Text = Color; PlateResultEvent(string.Format("Plate Result Time:{0} Plate:{1}", Time, Plate)); } }