Пример #1
0
        public override void Execute(object parameter)
        {
            AddPIMDiagramCommand c = AddPIMDiagramCommandFactory.Factory().Create(CurrentProject.GetModelController()) as AddPIMDiagramCommand;

            c.Set(CurrentProject, null);
            c.Execute();
        }
Пример #2
0
        private void OnAddPIMDiagramClick(object sender, RoutedEventArgs e)
        {
            AddPIMDiagramCommand addDiagramCommand = AddPIMDiagramCommandFactory.Factory().Create(project.GetModelController()) as AddPIMDiagramCommand;

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