This commit is contained in:
Kathy Ruffing 2012-10-30 14:28:01 +00:00
parent 62334a105d
commit 8b9c2c20d9

View File

@ -339,7 +339,7 @@ namespace Volian.Controls.Library
tmp = new TreeNode(chld[i].title.Replace(@"\u160?"," ")); tmp = new TreeNode(chld[i].title.Replace(@"\u160?"," "));
tmp.Tag = chld[i]; tmp.Tag = chld[i];
if (chld[i].roid.Length == 16) if (chld[i].roid.Length == 16)
tn.Nodes.Add(tmp.Text); tn.Nodes.Add(tmp);
else else
{ {
int index = FindIndex(tn.Nodes, tmp.Text); int index = FindIndex(tn.Nodes, tmp.Text);
@ -488,15 +488,18 @@ namespace Volian.Controls.Library
LoadChildren(tnExpand); LoadChildren(tnExpand);
tnExpand.Expand(); tnExpand.Expand();
foreach (TreeNode tn in tnExpand.Nodes) foreach (TreeNode tn in tnExpand.Nodes)
{
if (tn.Tag != null)
{ {
ROFSTLookup.rochild chld = (ROFSTLookup.rochild)tn.Tag; ROFSTLookup.rochild chld = (ROFSTLookup.rochild)tn.Tag;
if (chld.roid == roid) if (chld.roid.ToUpper() == roid.ToUpper())
{ {
tnExpand = tn; tnExpand = tn;
break; break;
} }
} }
} }
}
tvROFST.SelectedNode = tnExpand; tvROFST.SelectedNode = tnExpand;
} }
} }