private void OpenIc()
 {
     "初始化IC卡硬件连接。".ToSaveLog("OpenICard:");
     while (true)
     {
         lock (Obj)
         {
             try
             {
                 if (!icPass)
                 {
                     IrAdvanced.DoEvents(CheckICard());
                 }
                 else
                 {
                     Thread.Sleep(1000);
                 }
             }
             catch (Exception ex)
             {
                 ex.ToSaveLog();
             }
         }
     }
 }