Exemplo n.º 1
0
 private void FrmReIssueCard_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (rc != null)
     {
         rc.OnReadedInfo -= readIDCrad_OnReadedInfo;
         rc.OnReadError  -= readIDCrad_OnReadError;
         if (!rc.IsRegister)
         {
             rc.Over();
         }
     }
     //if (AutoHostConfig.IDCardType.Equals("XUHUI_PH"))
     //{
     //    this.backgroundWorker2.CancelAsync();
     //}
     //this.backgroundWorker1.CancelAsync();
     ucTime1.timer1.Stop();
 }
 private void FrmIdentityCard_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (rc != null)
     {
         rc.OnReadedInfo -= readIDCrad_OnReadedInfo;
         rc.OnReadError  -= readIDCrad_OnReadError;
         if (!rc.IsRegister)
         {
             rc.Over();
         }
     }
 }