public static void Execute(DockItem dockItem)
            {
                DockControl dockControl = dockItem.DockControl;

                if (dockControl.CanEnterUndo && dockItem.IsHidden)
                {
                    dockControl.ExecuteCommand(new DeselectCommand(dockItem));
                }
                else
                {
                    dockItem.DoDeselect();
                }
            }