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