Exemplo n.º 1
0
 private void OpenCvr()
 {
     "初始化二代身份证硬件连接。".ToSaveLog("OpenCvr:");
     try
     {
         Cvr = new Cvr();
         Cvr.GetNewDataEvent += Cvr_GetNewDataEvent;
     }
     catch (Exception ex)
     {
         ex.ToSaveLog();
     }
 }
Exemplo n.º 2
0
 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();
     }
 }