Ejemplo n.º 1
0
        public override void Execute(object parameter)
        {
            AddPSMDiagramCommand c = AddPSMDiagramCommandFactory.Factory().Create(CurrentProject.GetModelController()) as AddPSMDiagramCommand;

            c.Set(CurrentProject, null);
            c.Execute();
        }
Ejemplo n.º 2
0
        private void OnAddPSMDiagramClick(object sender, RoutedEventArgs e)
        {
            AddPSMDiagramCommand addDiagramCommand = AddPSMDiagramCommandFactory.Factory().Create(project.GetModelController()) as AddPSMDiagramCommand;

            addDiagramCommand.Set(project, null);
            addDiagramCommand.Execute();
            InvokeDiagramDClick(addDiagramCommand.Diagram);
        }