コード例 #1
0
 private void UpdateTeam(SimpleEditableTeam source, Team target)
 {
     target.Id      = source.Id;
     target.Name    = source.Name;
     target.Year    = source.Year;
     target.Company = source.Company;
 }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
 public void SetTeam(Team team)
 {
     _editingTeam = team;
     if (Team != null)
     {
         Team.ErrorsChanged -= RaiseCanExecuteChanged;
     }
     Team = new SimpleEditableTeam();
     Team.ErrorsChanged += RaiseCanExecuteChanged;
     CopyTeam(team, Team);
 }