private void CopyAgeRange(AgeRange source, DtoAgeRange target) { target.Id = source.Id; if (EditMode) { target.Min = source.Min; target.Max = source.Max; } }
public void SetAgeRange(AgeRange ar) { _editingAgeRange = ar; if (AgeRange != null) { AgeRange.ErrorsChanged -= RaiseCanExecuteChanged; } AgeRange = new DtoAgeRange(); AgeRange.ErrorsChanged += RaiseCanExecuteChanged; CopyAgeRange(ar, AgeRange); }
private void UpdateAgeRange(DtoAgeRange source, AgeRange target) { target.Min = source.Min; target.Max = source.Max; }