public override void EditResource( IResource res )

        {

            _book = res;

            _edtName.Text = res.GetStringProp( "Name" );

 

            StringBuilder authorBuilder = new StringBuilder();

            foreach( IResource author in _book.GetLinksOfType( "Contact", PropTypes.BookAuthor ) )

            {

                if ( authorBuilder.Length > 0 )

                {

                    authorBuilder.Append( "," );

                }

                authorBuilder.Append( author.DisplayName );

            }

            _edtAuthors.Text = authorBuilder.ToString();

 

            if ( res.HasProp( PropTypes.PubYear ) )

            {

                _udYear.Value = res.GetIntProp( PropTypes.PubYear );

            }

            _edtIsbn.Text = res.GetStringProp( PropTypes.Isbn );

        }