Esempio n. 1
0
 private void btnInitDevice_Click_1(object sender, EventArgs e)
 {
     try
     {
         iPort        = idCard.InitDevice();
         txtport.Text = iPort.ToString();
         IDCardAPI.SDT_SetMaxRFByte(iPort, 36, 1);
     }
     catch (Exception ex)
     {
         lblMsg.Text = ex.Message;
     }
 }
Esempio n. 2
0
 private void btnSetMF_Click(object sender, EventArgs e)
 {
     try
     {
         int i = IDCardAPI.SDT_SetMaxRFByte(iPort, 36, 1);
         if (i == 144)
         {
             txtMFbyte.Text = "设置成功";
         }
         else
         {
             txtMFbyte.Text = "设置失败";
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }