private void disconnecting() { int ret = 0; try { if (m_CalibrationWindow != null) { m_CalibrationWindow.Close(); } ret = ETDevice.iV_Disconnect(); if (ret == 1) { logger4.Text = "iV_Disconnect: successfully"; } if (ret != 1) { logger4.Text = "iV_Disconnect failed: " + ret; } } catch (System.Exception exc) { logger4.Text = "Exception during iV_Disconnect: " + exc.Message; } }
private void disconnecting() { int ret = 0; try { ret = ETDevice.iV_Disconnect(); if (ret == 1) { logger.Text = "iV_Disconnect: disconnected successfully"; } if (ret != 1) { logger.Text = "iV_Disconnect: failed to disconnect: " + ret; } } catch (System.Exception exc) { logger.Text = "Exception during iV_Disconnect: " + exc.Message; } }
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { ETDevice.iV_Disconnect(); }