窗体改了个地方突然就故障了,然后把修改的地方删掉了也没用,修改地方的代码单拿出来也是对的
if (radioButton1.Checked == true)
{
this.Hide();
consumer frm2 = new consumer();
frm2.Show();
}
else if (radioButton2.Checked == true)
{
boss frm3 = new boss();
frm3.Show();
this.Hide();
}
else
{
string m = "请正确选择身份!";
MessageBox.Show(m, "提示");
}