示例#1
0
        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);
        }
示例#2
0
 public ProjectItemView(ProjectItemViewModel projectItemViewModel)
 {
     DataContext = projectItemViewModel;
     InitializeComponent();
 }