private void UpdateTeam(SimpleEditableTeam source, Team target) { target.Id = source.Id; target.Name = source.Name; target.Year = source.Year; target.Company = source.Company; }
private void CopyTeam(Team source, SimpleEditableTeam target) { if (EditMode) { target.Id = source.Id; target.Name = source.Name; target.Year = source.Year; target.Company = source.Company; } }
public void SetTeam(Team team) { _editingTeam = team; if (Team != null) { Team.ErrorsChanged -= RaiseCanExecuteChanged; } Team = new SimpleEditableTeam(); Team.ErrorsChanged += RaiseCanExecuteChanged; CopyTeam(team, Team); }