【发布时间】:2019-10-08 00:58:55
【问题描述】:
这是我的 RESET 按钮代码。它相当复杂而且很长。
textBox1.Text = string.Empty;
comboBox1.Text = string.Empty;
textBox2.Text = string.Empty;
radioButton1.Checked = false;
radioButton2.Checked = false;
checkBox1.Checked = false;
checkBox2.Checked = false;
comboBox2.Text = string.Empty;
textBox3.Text = string.Empty;
textBox4.Text = string.Empty;
textBox5.Text = string.Empty;
我想知道我可以使用循环或其他东西来简化这个命令吗?
【问题讨论】:
标签: c#