/// ------------------------------------------------------------------------------------ /// <summary> /// Releases the unmanaged resources used by the <see cref="T:System.Windows.Forms.Control"/> /// and its child controls and optionally releases the managed resources. /// </summary> /// <param name="disposing">true to release both managed and unmanaged resources; false /// to release only unmanaged resources.</param> /// ------------------------------------------------------------------------------------ protected override void Dispose(bool disposing) { if (disposing) { if (m_textBox != null) { m_textBox.CloseRootBox(); m_textBox.Dispose(); } } m_textBox = null; base.Dispose(disposing); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Releases the unmanaged resources used by the <see cref="T:System.Windows.Forms.Control"/> /// and its child controls and optionally releases the managed resources. /// </summary> /// <param name="disposing">true to release both managed and unmanaged resources; false /// to release only unmanaged resources.</param> /// ------------------------------------------------------------------------------------ protected override void Dispose(bool disposing) { System.Diagnostics.Debug.WriteLineIf(!disposing, "****************** Missing Dispose() call for " + GetType().Name + " ******************"); if (disposing) { if (m_textBox != null) { m_textBox.CloseRootBox(); m_textBox.Dispose(); } } m_textBox = null; base.Dispose(disposing); }