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);
@ -489,11 +489,14 @@ namespace Volian.Controls.Library
tnExpand.Expand(); tnExpand.Expand();
foreach (TreeNode tn in tnExpand.Nodes) foreach (TreeNode tn in tnExpand.Nodes)
{ {
ROFSTLookup.rochild chld = (ROFSTLookup.rochild)tn.Tag; if (tn.Tag != null)
if (chld.roid == roid)
{ {
tnExpand = tn; ROFSTLookup.rochild chld = (ROFSTLookup.rochild)tn.Tag;
break; if (chld.roid.ToUpper() == roid.ToUpper())
{
tnExpand = tn;
break;
}
} }
} }
} }