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