/// <summary> /// 创建节点 /// </summary> /// <param name="nodeData"></param> /// <returns></returns> internal static ScopeTreeNode CreateScopeTreeNode(ScopeNodeData nodeData) { ScopeTreeNode node = new ScopeTreeNode(); node.NodeData = nodeData; RebuildTreeNode(node); return node; }
/// <summary> /// 更新节点 /// </summary> /// <param name="nodeData"></param> /// <param name="treeNode"></param> internal static void UpdateScopeTreeNode(ScopeNodeData nodeData, ScopeTreeNode treeNode) { treeNode.NodeData = nodeData; RebuildTreeNode(treeNode); }
private static void RebuildTreeNode(ScopeTreeNode treeNode) { NodeData nodeData = treeNode.NodeData; treeNode.Text = nodeData.DisplayName; }