public bool ChooseArticle(TreeNode node)
{
bool tempState = false;
string tempStrandName="麻醉专家咨询库";
string tempCustomName="医院知识库";
if (tempStrandName==node.Text||GetRootName(node) == tempStrandName)
{
tempState= true;
}
else if (tempCustomName == node.Text || GetRootName(node) == tempCustomName)
{
tempState = false;
}
return tempState;
}
public string GetRootName(TreeNode node)
{
if (object.Equals(node.Parent, null))
{
return node.Text;
}
else
{
return GetRootName(node.Parent);
}
}
posted on 2010-10-14 09:59
sanmao 阅读(208)
评论(0) 编辑 收藏