一个小的IF循环
if (textBox1.Text != "")
{
button1.Text = "1不为空";
}
else if (textBox2.Text != "")
{
button1.Text = "2不为空";
}
else
{
button1.Text = "全空";
}
浙公网安备 33010602011771号