public void Present(bool giveFocus) { if (dockBarItem != null) { dockBarItem.Present(Status == DockItemStatus.AutoHide || giveFocus); } else { frame.Present(this, Status == DockItemStatus.AutoHide || giveFocus); } }