AGS.Editor.Components.TranslationsComponent.AddTreeLeafForTranslation C# (CSharp) 메소드

AddTreeLeafForTranslation() 개인적인 메소드

private AddTreeLeafForTranslation ( string key, AGS.Types.Translation item ) : void
key string
item AGS.Types.Translation
리턴 void
        private void AddTreeLeafForTranslation(string key, Translation item)
        {
            ProjectTreeItem treeItem = (ProjectTreeItem)_guiController.ProjectTree.AddTreeLeaf(this, key, item.Name, "TranslationIcon");
            treeItem.AllowLabelEdit = true;
            treeItem.LabelTextProperty = item.GetType().GetProperty("Name");
            treeItem.LabelTextDescriptionProperty = item.GetType().GetProperty("FileName");
            treeItem.LabelTextDataSource = item;
        }