Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
        private void CopyCoach(Coach source, DtoCoach target)
        {
            target.Id = source.Id;

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