Example #1
0
 private void CopyTask(ProjectTask source, EditableTask target)
 {
     target.Id = source.Id;
     if (EditMode)
     {
         target.Name        = source.Name;
         target.Description = source.Description;
     }
 }
Example #2
0
 public void SetTask(ProjectTask task)
 {
     EditingTask = task;
     if (Task != null)
     {
         Task.ErrorsChanged -= RaiseCanExecuteChanged;
     }
     Task = new EditableTask();
     Task.ErrorsChanged += RaiseCanExecuteChanged;
     CopyTask(task, Task);
 }
Example #3
0
 private void UpdateTask(EditableTask source, ProjectTask target)
 {
     target.Name        = source.Name;
     target.Description = source.Description;
 }