protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } if (m_Connection != null && m_Connection.Handle > 0 && DisposeConnection) { m_Connection.Dispose(); m_Connection = null; } base.Dispose(disposing); }
public void Dispose() { if (this.PollTimer != null) { this.PollTimer.Stop(); this.PollTimer.Dispose(); this.PollTimer = null; } if (m_DataBase != null) { m_DataBase.Dispose(); m_DataBase = null; } GC.SuppressFinalize(this); }