/// <summary>
/// 检查Text是否为空
/// </summary>
/// <param name="control"></param>
/// <returns></returns>
public static bool CheckTextIsNullMethod(Control control)
{
bool b = true;
int textCount = 0;
int nullCount = 0;
foreach (Control controls in control.Controls)
{
if (controls is TextBox)
{
textCount++;
TextBox text = (TextBox)controls;
if (text.Text == "")
{
nullCount += 1;
}
}
}
if (nullCount != 0)
{
b = true;
}
else
{
b = false;
}
return b;
}
/// 检查Text是否为空
/// </summary>
/// <param name="control"></param>
/// <returns></returns>
public static bool CheckTextIsNullMethod(Control control)
{
bool b = true;
int textCount = 0;
int nullCount = 0;
foreach (Control controls in control.Controls)
{
if (controls is TextBox)
{
textCount++;
TextBox text = (TextBox)controls;
if (text.Text == "")
{
nullCount += 1;
}
}
}
if (nullCount != 0)
{
b = true;
}
else
{
b = false;
}
return b;
}