public void CloseLCD() { try { lcd.Close(); } catch {} }
/// <summary> /// Releases unmanaged and - optionally - managed resources /// </summary> /// <param name="isDisposing"> /// <c>true</c> to release both managed and unmanaged resources; /// <c>false</c> to release only unmanaged resources. /// </param> private void Dispose(bool isDisposing) { if (!m_disposed) { if (isDisposing || s_singleInstance != null) { LCDInterface.Close(); } s_singleInstance = null; } m_disposed = true; }