/// <summary> /// Launches the new project window. /// </summary> public void CreateProject() { ProjectView window = new ProjectView(); using (var viewModel = new ProjectViewModel(Project.CreateNewProject(), _projectData, _taskData)) { this.ShowWorkspaceAsDialog(window, viewModel); } }
/// <summary> /// Launches the edit task window. /// </summary> public void EditProject() { ProjectView window = new ProjectView(); ProjectViewModel selectedProjectVM = AllProjects.FirstOrDefault(p => p.IsSelected == true); using (var viewModel = new ProjectViewModel(_projectData.GetProjectByProjectId(selectedProjectVM.ProjectId), _projectData, _taskData)) { this.ShowWorkspaceAsDialog(window, viewModel); } }