/// ----------------------------------------------------------------------------------- /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing"><c>true</c> to release both managed and unmanaged /// resources; <c>false</c> to release only unmanaged resources. /// </param> /// ----------------------------------------------------------------------------------- protected override void Dispose(bool disposing) { System.Diagnostics.Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType().Name + ". ****** "); // Must not be run more than once. if (IsDisposed) { return; } if (disposing) { if (components != null) { components.Dispose(); } if (m_messageFilter != null) { Application.RemoveMessageFilter(m_messageFilter); } } m_messageFilter = null; m_eth = null; components = null; base.Dispose(disposing); }
/// ----------------------------------------------------------------------------------- /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing"><c>true</c> to release both managed and unmanaged /// resources; <c>false</c> to release only unmanaged resources. /// </param> /// ----------------------------------------------------------------------------------- protected override void Dispose(bool disposing) { //Debug.WriteLineIf(!disposing, "****************** " + GetType().Name + " 'disposing' is false. ******************"); // Must not be run more than once. if (IsDisposed) { return; } if (disposing) { if (components != null) { components.Dispose(); } if (m_sqlCommand != null) { m_sqlCommand.Dispose(); } if (m_dbConnection != null) { m_dbConnection.Dispose(); } if (m_messageFilter != null) { Application.RemoveMessageFilter(m_messageFilter); } } m_messageFilter = null; m_sqlCommand = null; m_dbConnection = null; components = null; base.Dispose(disposing); }
/// ------------------------------------------------------------------------------------ /// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// ------------------------------------------------------------------------------------ private void txtFindPattern_Enter(object sender, System.EventArgs e) { m_messageFilter = new TrapEnterFilter(this); Application.AddMessageFilter(m_messageFilter); }
/// ----------------------------------------------------------------------------------- /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing"><c>true</c> to release both managed and unmanaged /// resources; <c>false</c> to release only unmanaged resources. /// </param> /// ----------------------------------------------------------------------------------- protected override void Dispose( bool disposing ) { //Debug.WriteLineIf(!disposing, "****************** " + GetType().Name + " 'disposing' is false. ******************"); // Must not be run more than once. if (IsDisposed) return; if (disposing) { if (components != null) components.Dispose(); if (m_sqlCommand != null) m_sqlCommand.Dispose(); if (m_dbConnection != null) m_dbConnection.Dispose(); if (m_messageFilter != null) Application.RemoveMessageFilter(m_messageFilter); } m_messageFilter = null; m_sqlCommand = null; m_dbConnection = null; components = null; base.Dispose( disposing ); }
/// ----------------------------------------------------------------------------------- /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing"><c>true</c> to release both managed and unmanaged /// resources; <c>false</c> to release only unmanaged resources. /// </param> /// ----------------------------------------------------------------------------------- protected override void Dispose(bool disposing) { System.Diagnostics.Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType().Name + ". ****** "); // Must not be run more than once. if (IsDisposed) return; if (disposing) { if (components != null) components.Dispose(); if (m_messageFilter != null) Application.RemoveMessageFilter(m_messageFilter); } m_messageFilter = null; m_eth = null; components = null; base.Dispose( disposing ); }