コード例 #1
0
        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();
        }
コード例 #2
0
        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();
                }
            }
        }
コード例 #3
0
        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();
            }
        }