/// <exclude /> protected virtual void Dispose(bool disposing) { if (disposing) { lock (this) { DockPanel = null; if (AutoHideTab != null) { AutoHideTab.Dispose(); } if (DockPaneTab != null) { DockPaneTab.Dispose(); } Form.Disposed -= new EventHandler(Form_Disposed); Form.TextChanged -= new EventHandler(Form_TextChanged); Events.Dispose(); } } }
/// <exclude/> protected override void Dispose(bool disposing) { if (disposing) { if (m_hiddenMdiChild != null) { m_hiddenMdiChild.Close(); m_hiddenMdiChild = null; } DockPanel = null; if (AutoHideTab != null) { AutoHideTab.Dispose(); } if (DockPaneTab != null) { DockPaneTab.Dispose(); } } base.Dispose(disposing); }