Exemple #1
0
 private void UpdateCoach(DtoCoach source, Coach 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;
 }
Exemple #2
0
        private void CopyCoach(Coach source, DtoCoach target)
        {
            target.Id = source.Id;

            if (EditMode)
            {
                target.FirstName = source.FirstName;
                target.LastName  = source.LastName;
            }
        }
Exemple #3
0
 public void SetCoach(Coach ar)
 {
     _editingCoach = ar;
     if (Coach != null)
     {
         Coach.ErrorsChanged -= RaiseCanExecuteChanged;
     }
     Coach = new DtoCoach();
     Coach.ErrorsChanged += RaiseCanExecuteChanged;
     CopyCoach(ar, Coach);
 }