Esempio n. 1
0
    void OnDestroy()
    {
        if (mSensorHandle != null)
        {
            OpenZen.ZenReleaseSensor(mZenHandle, mSensorHandle);
        }
        OpenZen.ZenShutdown(mZenHandle);

        // connection.Stop();
    }
Esempio n. 2
0
        private void disconnect_Device4_Click(object sender, EventArgs e)
        {
            try
            {
                abort_Thread(4);
                disconnect_Device4.Visible = false;
                connect_Device4.Enabled    = true;
                device_List4.Enabled       = true;

                OpenZen.ZenReleaseSensor(device4_Handle, device4_Sensor);
            }
            catch (Exception)
            {
                MessageBox.Show("An Error Occured!");
            }
        }