SVN-Revision: r257
This commit is contained in:
tdx
2025-02-08 06:18:05 +00:00
parent 5ed2b8fa3f
commit e910b8b55b
+27 -6
View File
@@ -153,9 +153,16 @@ namespace Lskj.Control
else else
{ {
TreeNode tNode = this.TreeView.Nodes.Add(tnKey, tnStr); TreeNode tNode = this.TreeView.Nodes.Add(tnKey, tnStr);
if (!nodesDic.ContainsKey(tnKey)) if (nodesDic.ContainsKey(tnKey))
{ {
nodesDic.Add(tnKey, new List<TreeNode>()); List<TreeNode> childNodesList = nodesDic[tnKey];
childNodesList.Add(tNode);
}
else
{
List<TreeNode> childNodesList = new List<TreeNode>();
childNodesList.Add(tNode);
nodesDic.Add(tnKey, childNodesList);
} }
tNode.Tag = tnKey; tNode.Tag = tnKey;
} }
@@ -252,9 +259,16 @@ namespace Lskj.Control
else else
{ {
TreeNode tNode = this.TreeView.Nodes.Add(tnKey, tnStr); TreeNode tNode = this.TreeView.Nodes.Add(tnKey, tnStr);
if (!nodesDic.ContainsKey(tnKey)) if (nodesDic.ContainsKey(tnKey))
{ {
nodesDic.Add(tnKey, new List<TreeNode>()); List<TreeNode> childNodesList = nodesDic[tnKey];
childNodesList.Add(tNode);
}
else
{
List<TreeNode> childNodesList = new List<TreeNode>();
childNodesList.Add(tNode);
nodesDic.Add(tnKey, childNodesList);
} }
tNode.Tag = tnKey; tNode.Tag = tnKey;
} }
@@ -288,9 +302,16 @@ namespace Lskj.Control
else else
{ {
TreeNode tNode = this.TreeView.Nodes.Add(tnKey, tnStr); TreeNode tNode = this.TreeView.Nodes.Add(tnKey, tnStr);
if (!nodesDic.ContainsKey(tnKey)) if (nodesDic.ContainsKey(tnKey))
{ {
nodesDic.Add(tnKey, new List<TreeNode>()); List<TreeNode> childNodesList = nodesDic[tnKey];
childNodesList.Add(tNode);
}
else
{
List<TreeNode> childNodesList = new List<TreeNode>();
childNodesList.Add(tNode);
nodesDic.Add(tnKey, childNodesList);
} }
tNode.Tag = tnKey; tNode.Tag = tnKey;
} }