private void button3_Click(object sender, EventArgs e) { //修改 if (flag == 1) { //题库 temp t = new temp(3); t.ShowDialog(); showtiku(); } if (flag == 2) {//学生 temp2 t = new temp2(1); t.ShowDialog(); showxuesheng(); } }
private void button1_Click(object sender, EventArgs e) { //增加 if (flag == 1) { //题库 temp t = new temp(1); t.ShowDialog(); showtiku(); } if (flag == 2) { student s = new student(0); s.ShowDialog(); showxuesheng(); } }