private bool IsOpen(string name)
{
isOpen = true;
for (int i = 0; i < this.MdiChildren.Length; i++)
{
if (name==MdiChildren[i].Text)
{
isOpen = false;
}
}
return isOpen;
}
根据返回值进行判断