foreach (Control txtobj in this.PMain.Controls)
{
if (txtobj is TextBox) //if(txtobj is Button)
{
if (string.IsNullOrEmpty(txtobj.Text))
{
MsgBox.MsgInfo("界面数据不能为空,请检查!");
return;
}
}
}