Exemple #1
0
        private void Disconnect()
        {
            if (m_ah != null)
            {
                m_ah.Stop();
                m_ah.Dispose();

                m_ah = null;
            }

            if (m_eng != null)
            {
                if (m_deviceRunning)
                {
                    m_eng.ResumeExecution();
                }

                m_eng.Stop();

                m_eng = null;
            }

            m_deviceRunning = false;
        }