AGS.Editor.TabbedDocumentManager.SetIcon C# (CSharp) Метод

SetIcon() приватный Метод

private SetIcon ( AGS.Types.ContentDocument pane ) : void
pane AGS.Types.ContentDocument
Результат void
        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);
            }
        }