コード例 #1
0
        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();
            }
        }
コード例 #2
0
        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();
            }
        }