Ejemplo n.º 1
0
 private void UpdateGuardian(DtoGuardian source, Guardian 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
 public void SetGuardian(Guardian ar)
 {
     _editingGuardian = ar;
     if (Guardian != null)
     {
         Guardian.ErrorsChanged -= RaiseCanExecuteChanged;
     }
     Guardian = new DtoGuardian();
     Guardian.ErrorsChanged += RaiseCanExecuteChanged;
     CopyGuardian(ar, Guardian);
 }
Ejemplo n.º 3
0
        private void CopyGuardian(Guardian source, DtoGuardian target)
        {
            target.Id = source.Id;

            if (EditMode)
            {
                target.FirstName = source.FirstName;
                target.LastName  = source.LastName;
                target.City      = source.City;
                target.State     = source.State;
                target.City      = source.City;
                target.Street    = source.Street;
            }
        }