private void UpdatePlayer(DtoPlayer source, Player target) { target.FirstName = source.FirstName; target.LastName = source.LastName; target.City = source.City; target.State = source.State; target.City = source.City; target.Street = source.Street; }
public void SetPlayer(Player ar) { _editingPlayer = ar; if (Player != null) { Player.ErrorsChanged -= RaiseCanExecuteChanged; } Player = new DtoPlayer(); Player.ErrorsChanged += RaiseCanExecuteChanged; CopyPlayer(ar, Player); }
private void CopyPlayer(Player source, DtoPlayer target) { target.Id = source.Id; if (EditMode) { target.FirstName = source.FirstName; target.LastName = source.LastName; target.City = source.City; target.State = source.State; target.City = source.City; target.Street = source.Street; } }