Example #1
0
        private void EditProject(ProjectDto projectDto)
        {
            Project project   = _repository.GetById(projectDto.Id);
            var     viewModel = new ExistingProjectViewModel(project);

            if (_dialogService.ShowDialog(viewModel) == true)
            {
                int index = Projects.IndexOf(projectDto);
                Projects[index] = _repository.GetProjectDto(viewModel.Project.Id);
            }
        }
        private void EditProject(ProjectDto projectDto)
        {
            Project project = _repository.GetById(projectDto.Id);
            var viewModel = new ExistingProjectViewModel(project);

            if (_dialogService.ShowDialog(viewModel) == true)
            {
                int index = Projects.IndexOf(projectDto);
                Projects[index] = _repository.GetProjectDto(viewModel.Project.Id);
            }
        }