public static void Execute(DockItem dockItem) { DockControl dockControl = dockItem.DockControl; if (TestUndo(dockItem)) { dockControl.ExecuteCommand(new CloseCommand(dockItem)); } else { dockItem.DoClose(); } }
public sealed override void UnExecute(DockControl dockControl) { DockItem item = GetDockItem(dockControl); item.DoClose(); if (DockItemIndex != -1) { item.EnsureAttached(dockControl, DockItemIndex); } if (SecondPaneShowAction != null) { SecondPaneShowAction.Run(dockControl); } if (FirstPaneShowAction != null) { FirstPaneShowAction.Run(dockControl); } }