public override void Execute(object parameter)
        {
            ProjectDetailsViewModel vm = _mainWindow.FindProjectDetailsTabForProject(_mainWindow.SelectedProject);
            if (vm == null)
            {
                vm = new ProjectDetailsViewModel(_mainWindow.SelectedProject, _mainWindow);
                _mainWindow.Tabs.Add(vm);
            }

            _mainWindow.SetActiveTab(vm);
        }
 public SaveProjectCommand(Project project, ProjectDetailsViewModel projectDetails, MainWindowViewModel mainWindow)
 {
     _project = project;
     _projectDetails = projectDetails;
     _mainWindow = mainWindow;
 }
 public override void Execute(object parameter)
 {
     ProjectDetailsViewModel vm = new ProjectDetailsViewModel(new Project(), _viewModel);
     _viewModel.Tabs.Add(vm);
     _viewModel.SetActiveTab(vm);
 }