private void UpdatePlayer(SimpleEditablePlayer source, Player target)
 {
     target.Name     = source.Name;
     target.Handicap = source.Handicap;
     target.IsMale   = source.IsMale;
     target.Age      = source.Age;
 }
        private void CopyPlayer(Player target, SimpleEditablePlayer source)
        {
            target.PlayerId = source.PlayerId;

            if (EditMode)
            {
                target.Name     = source.Name;
                target.Handicap = source.Handicap;
                target.IsMale   = source.IsMale;
                target.Age      = source.Age;
            }
        }
        internal void SetPlayer(Player player)
        {
            _editingPlayer = player;
            if (Player != null)
            {
                Player.ErrorsChanged -= RaiseCanExecuteChanged;
            }

            Player = new SimpleEditablePlayer();

            Player.ErrorsChanged += RaiseCanExecuteChanged;
            CopyPlayer(player, Player);
        }