public AddProcessViewModel(ProjectItemViewModel project) { Project = project; SetupProcessTypes(); SwitchToProjectPageCommand = new RelayCommand(() => DI.UI.ChangeView(View.ProjectItemView, Project)); SwitchToMainPageCommand = new RelayCommand(() => DI.UI.ChangeView(View.ProjectsListView, new ProjectsListViewModel(DI.Projects))); OpenProjectDirectoryCommand = new RelayCommand(() => DI.FolderDialog.OpenFolder(Project.Project.ProjectPath)); SwitchToAddProcessViewCommand = new RelayCommand <ProcessType>(ExecuteSwitchToAddProcessViewCommand); }
public ProjectItemView(ProjectItemViewModel projectItemViewModel) { DataContext = projectItemViewModel; InitializeComponent(); }