private void SetIcon(ContentDocument pane)
{
if (string.IsNullOrEmpty(pane.IconKey))
pane.Control.DockingContainer.Icon = Factory.GUIController.MainIcon;
else
{
Image iconImage =
Factory.GUIController.ImageList.Images[pane.IconKey];
pane.Control.DockingContainer.Icon = Utilities.ImageToIcon(iconImage);
}
}