private void OpenCvr() { "初始化二代身份证硬件连接。".ToSaveLog("OpenCvr:"); try { Cvr = new Cvr(); Cvr.GetNewDataEvent += Cvr_GetNewDataEvent; } catch (Exception ex) { ex.ToSaveLog(); } }
public override void Dispose() { base.Dispose(); if (CamThread != null) { CamThread.Abort(); CamThread = null; } if (Cvr != null) { Cvr.Dispose(); Cvr = null; } if (Face != null) { Face.Dispose(); } }