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

            if (EditMode)
            {
                target.FirstName = source.FirstName;
                target.LastName  = source.LastName;
            }
        }
Esempio 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);
 }