예제 #1
0
        private void CopyGender(Gender source, DtoGender target)
        {
            target.Id = source.Id;

            if (EditMode)
            {
                target.Name = source.Name;
            }
        }
예제 #2
0
 public void SetGender(Gender ar)
 {
     _editingGender = ar;
     if (Gender != null)
     {
         Gender.ErrorsChanged -= RaiseCanExecuteChanged;
     }
     Gender = new DtoGender();
     Gender.ErrorsChanged += RaiseCanExecuteChanged;
     CopyGender(ar, Gender);
 }
예제 #3
0
 private void UpdateGender(DtoGender source, Gender target)
 {
     target.Name = source.Name;
 }