public override void Execute(object parameter) { AddPSMDiagramCommand c = AddPSMDiagramCommandFactory.Factory().Create(CurrentProject.GetModelController()) as AddPSMDiagramCommand; c.Set(CurrentProject, null); c.Execute(); }
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); }