private void UpdateLocation(DtoLocation source, Location target) { target.Name = source.Name; target.City = source.City; target.State = source.State; target.City = source.City; target.Street = source.Street; }
public void SetLocation(Location ar) { _editingLocation = ar; if (Location != null) { Location.ErrorsChanged -= RaiseCanExecuteChanged; } Location = new DtoLocation(); Location.ErrorsChanged += RaiseCanExecuteChanged; CopyLocation(ar, Location); }
private void CopyLocation(Location source, DtoLocation target) { target.Id = source.Id; if (EditMode) { target.Name = source.Name; target.City = source.City; target.State = source.State; target.City = source.City; target.Street = source.Street; } }