internal void Release() { DockContainer parent = this.controlContainer.Parent as DockContainer; if (parent != null) { parent.ReleaseWindow(this); } }
/// <summary> /// Releases the window from its host container. /// </summary> internal void Release() { /*if (this.HostContainer != null) * HostContainer.ReleaseWindow(this);*/ DockContainer host = controlContainer.Parent as DockContainer; if (host != null) { host.ReleaseWindow(this); } }