void NextScene() { if (soCauDaTraLoi == tongSoCau) { FormThongKe frmThongKe = new FormThongKe(); FormThongKe.tongSoCau = soCauDaTraLoi; FormThongKe.soCauDung = soCauDung; frmThongKe.ShowDialog(); if (FormThongKe.luaChon == 2) { this.Close(); } else if (FormThongKe.luaChon == 3) { this.Close(); } else if (FormThongKe.luaChon == 4) { this.Close(); } } else if (thuTuCauHoi < soCauDaTraLoi) { thuTuCauHoi++; } Scene(); }
void NextScene() { if (thuTuCauHoi < listCauHoi.Count - 1) { thuTuCauHoi++; Scene(); } else { FormThongKe frmThongKe = new FormThongKe(); FormThongKe.tongSoCau = soCauDaTraLoi; FormThongKe.soCauDung = soCauDung; frmThongKe.ShowDialog(); if (FormThongKe.luaChon == 2) { this.Close(); } else if (FormThongKe.luaChon == 3) { this.Close(); } else if (FormThongKe.luaChon == 4) { this.Close(); } } }
private void btnSubmit_Click(object sender, EventArgs e) { FormThongKe frmThongKe = new FormThongKe(); FormThongKe.tongSoCau = soCauDaTraLoi; FormThongKe.soCauDung = soCauDung; frmThongKe.ShowDialog(); if (FormThongKe.luaChon == 2) { this.Close(); } else if (FormThongKe.luaChon == 3) { this.Close(); } else if (FormThongKe.luaChon == 4) { this.Close(); } }