Exemplo n.º 1
0
 public static void Execute(DockItem dockItem, DockControl dockControl, DockPosition dockPosition, DockItemShowMethod showMethod)
 {
     Debug.Assert(dockControl != null);
     if (TestUndo(dockItem, dockControl))
     {
         dockControl.ExecuteCommand(new ShowAsDockPositionCommand(dockItem, dockPosition, showMethod));
     }
     else
     {
         dockItem.DoShowAsDockPosition(dockControl, dockPosition, showMethod);
     }
 }