private void CopySchedule(Schedule source, DtoSchedule target) { target.Id = source.Id; if (EditMode) { target.Name = source.Name; } }
public void SetSchedule(Schedule ar) { _editingSchedule = ar; if (Schedule != null) { Schedule.ErrorsChanged -= RaiseCanExecuteChanged; } Schedule = new DtoSchedule(); Schedule.ErrorsChanged += RaiseCanExecuteChanged; CopySchedule(ar, Schedule); }
private void UpdateSchedule(DtoSchedule source, Schedule target) { target.Name = source.Name; }