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);
}
}