//获取标题名称 private string GetText(IEntityData entity, SortInfoQueue SortList) { IAssetsData assetsData = entity as IAssetsData; if (assetsData == null) { return(entity.Text); } return(assetsData.GetText(SortList)); }
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); } }