Пример #1
0
        //获取标题名称
        private string GetText(IEntityData entity, SortInfoQueue SortList)
        {
            IAssetsData assetsData = entity as IAssetsData;

            if (assetsData == null)
            {
                return(entity.Text);
            }
            return(assetsData.GetText(SortList));
        }
Пример #2
0
        private void SubUpdateItems(TreeNode treeNode, SortInfoQueue sortInfoQueue)
        {
            IAssetsData assetsData = treeNode.Tag as IAssetsData;

            if (assetsData != null)
            {
                treeNode.Text = assetsData.GetText(sortInfoQueue);
            }

            foreach (TreeNode item in treeNode.Nodes)
            {
                SubUpdateItems(item, sortInfoQueue);
            }
        }