Ejemplo n.º 1
0
        public PSMClass DerivePSMClassToNewDiagram()
        {
            DerivePSMClassToNewDiagramCommand c =
                (DerivePSMClassToNewDiagramCommand)DerivePSMClassToNewDiagramCommandFactory.Factory().Create(DiagramController.ModelController);

            c.Set(Class);
            c.Execute();
            return(c.pSMClassHolder.Element);
        }
Ejemplo n.º 2
0
        public override void Execute(object parameter)
        {
            List <PIM_Class> List = new List <PIM_Class>();

            List.AddRange(ActiveDiagramView.SelectedItems.OfType <PIM_Class>());
            foreach (PIM_Class Class in List)
            {
                DerivePSMClassToNewDiagramCommand c = DerivePSMClassToNewDiagramCommandFactory.Factory().Create(CurrentProject.GetModelController()) as DerivePSMClassToNewDiagramCommand;
                c.Set(Class.ClassController.Class);
                if (c.CanExecute())
                {
                    c.Execute();
                }
            }
        }