public void MoveToContentChoice(PSMContentChoice contentChoice) { MoveSubordinateToSuperordinateMacroCommand <PSMContentChoice> c = (MoveSubordinateToSuperordinateMacroCommand <PSMContentChoice>) MoveSubordinateToSuperordinateMacroCommandFactory <PSMContentChoice> .Factory().Create(DiagramController); c.InitializeCommand(new[] { PSMAssociation }, contentChoice); if (c.Commands.Count > 0) { c.Execute(); } }
public void MoveToContentContainer(PSMContentContainer contentContainer) { MoveSubordinateToSuperordinateMacroCommand <PSMContentContainer> c = (MoveSubordinateToSuperordinateMacroCommand <PSMContentContainer>) MoveSubordinateToSuperordinateMacroCommandFactory <PSMContentContainer> .Factory().Create(DiagramController); c.InitializeCommand(new[] { ContentChoice }, contentContainer); if (c.Commands.Count > 0) { c.Execute(); } }