protected override void Dispose(bool disposing) { if (disposing) { if (DockPanel != null) { DockPanel.RemoveFloatWindow(this); } m_dockPanel = null; } base.Dispose(disposing); }