public void RefreshPropertyGridForDocument(ContentDocument document)
{
if (document == null)
{
this.SetPropertyObjectList(null);
this.SetPropertyObject(null);
}
else
{
this.SetPropertyObjectList(document.PropertyGridObjectList);
if (document.SelectedPropertyGridObjects != null)
{
this.SetPropertyObjects(document.SelectedPropertyGridObjects);
}
else
{
this.SetPropertyObject(document.SelectedPropertyGridObject);
}
}
}