コード例 #1
0
 private void UpdatePlayer(DtoPlayer source, Player 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;
 }
コード例 #2
0
 public void SetPlayer(Player ar)
 {
     _editingPlayer = ar;
     if (Player != null)
     {
         Player.ErrorsChanged -= RaiseCanExecuteChanged;
     }
     Player = new DtoPlayer();
     Player.ErrorsChanged += RaiseCanExecuteChanged;
     CopyPlayer(ar, Player);
 }
コード例 #3
0
        private void CopyPlayer(Player source, DtoPlayer 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;
            }
        }