/// <summary>
/// 获取唯一类型的
/// </summary>
public bool getSubControl(Control baseControl)
{
foreach (Control subControl in baseControl.Controls)
{
_yourFormType= subControl as YourFormType;
if (_mapMarkTree != null)
return true;
else
{
return getSubControl(subControl);
}
}
return false;
}