Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
        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;
            }
        }
Exemplo n.º 3
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     ETDevice.iV_Disconnect();
 }