public void Authenticate() { while (true) { //卡认证 int intReadRet = DeviceUtils.Authenticate(); //label1.Text = "intReadRet:" + intReadRet; if (intReadRet != 1) { // MessageBox.Show("身份证信息:未认证 "); continue; } readCard(); } }