public int CheckJuri(object objFunc) //在调用此方法时用的sender
{
int isOk = 0;
string fc;
if (objFunc is Control)
{
Control con = (Control)objFunc; //错误如图
if (con.Tag == null) return -1;
}
else if (objFunc is ToolStripMenuItem)
{
ToolStripMenuItem con = (ToolStripMenuItem)objFunc; //错误如图
if (con.Tag == null) return -1;
}
}