直接封装成用户控件使用,无需再研究原SDK,同时解决一窗多枪的事件注册问题。using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms; namespace tzUcPlate{ public partial class tzUcPlate : UserControl { TZplateSDK.TZCam cam = new TZplateSDK.TZCam(); public tzUcPlate() { InitializeComponent(); } #region 属性 string _CamearIP = ""; /// public string CamearIP { get { return _CamearIP; } set { _CamearIP = value; } } bool _isMaxVido = true; /// public bool IsMaxVido { get { return _isMaxVido; } set { _isMaxVido = value; } } #endregion 属性 #region 私有有变量 /// bool isPlaying = false; #endregion 私有有变量 #region 事件 public delegate void OnGetPlateDeg(object sender, TZplateSDK.PlateEventAges e); public event OnGetPlateDeg OnGetPlage; public event EventHandler