Exemplo n.º 1
0
        private void frmMonitorCam_FormClosing(object sender, FormClosingEventArgs e)
        {
            for (int i = 0; i < 8; i++)
            {
                LampComm.OFFLamp(i);
            }


            LampComm.Close();
            LampComm = null;


            if (null != m_VimbaHelper)
            {
                try
                {
                    try
                    {
                        // Shutdown Vimba SDK when application exits
                        m_VimbaHelper.Shutdown();
                    }
                    finally
                    {
                        m_VimbaHelper = null;
                    }
                }
                catch (Exception exception)
                {
                    textBox1.Text += "\n" + "Could not shutdown Vimba API. Reason: " + exception.Message;
                }
            }
        }
Exemplo n.º 2
0
        private void frmFuncLamp_FormClosing(object sender, FormClosingEventArgs e)
        {
            //LampComm.ONLamp(SetChannelIndex);

            for (int i = 0; i < 8; i++)
            {
                LampComm.OFFLamp(i);
            }


            LampComm.Close();
            LampComm = null;
        }