protected override void Dispose(bool disposing) { if (disposing) { m_dockState = DockState.Unknown; if (NestedPanesContainer != null) { NestedPanesContainer.NestedPanes.Remove(this); } if (DockPanel != null) { DockPanel.RemovePane(this); m_dockPanel = null; } Splitter.Dispose(); if (m_autoHidePane != null) { m_autoHidePane.Dispose(); } } base.Dispose(disposing); }