Exemple #1
0
 /// <summary>
 /// 关闭端口
 /// </summary>
 public void ClosePort()
 {
     try
     {
         CVRSDK.CVR_CloseComm();
     }
     catch (Exception ex)
     {
         throw new  Exception(ex.ToString());
     }
 }
Exemple #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     isread = false;
     try { CVRSDK.CVR_CloseComm(); }
     catch { }
 }
Exemple #3
0
 private void btnExit_Click(object sender, EventArgs e)
 {
     try { CVRSDK.CVR_CloseComm(); }
     catch { }
     Application.ExitThread();
 }