コード例 #1
0
ファイル: frmHoc_Sinh.cs プロジェクト: 1760005/Quan_Ly_Thi
        //bắt đầu thi thử
        private void btnTrial_start_pause_Click(object sender, EventArgs e)
        {
            if (_ma_de_thi_ == null || _ma_ky_thi_ == null)
            {
                frmChon_Bai_Thi.lop         = hs.Lop;
                frmChon_Bai_Thi._tai_khoan_ = null;
                frmChon_Bai_Thi chon_Bai_Thi = new frmChon_Bai_Thi();
                chon_Bai_Thi.Text = "Chọn Bài Thi Thử";
                chon_Bai_Thi.ShowDialog();
            }
            //có Đề  Thi
            if (_ma_de_thi_ != null && Dem_Lan_Bam == 0)
            {
                //Load De
                De = BUS_De_Thi.Lay_De_Thi_(_ma_de_thi_);
                Thoi_gian_lam_bai = BUS_De_Thi.Thoi_Gian_Thi(_ma_de_thi_);
                DS_Cau_Tra_Loi    = new List <CauTraLoi>();
                if (De.De.Count > 0)
                {
                    lbTrial_STT_question.Text = "Câu " + (_vi_tri_Cau_hoi_ + 1).ToString() + " / " + De.De.Count.ToString();
                }

                Dem_Lan_Bam = 1;

                //set up Thoi Gian
                lbTrial_minute.Text = (Thoi_gian_lam_bai - 1).ToString();
                lbTrial_second.Text = "59";
                Start_time          = DateTime.Now;
                btnSuggest.Enabled  = true;
                thoi_gian1.Start();
            }
        }
コード例 #2
0
ファイル: frmHoc_Sinh.cs プロジェクト: 1760005/Quan_Ly_Thi
        private void btnStart_Pause_Click(object sender, EventArgs e)
        {
            if (_ma_de_thi_ == null || _ma_ky_thi_ == null)
            {
                frmChon_Bai_Thi.lop         = hs.Lop;
                frmChon_Bai_Thi._tai_khoan_ = hs.Tai_Khoan;
                frmChon_Bai_Thi chon_Bai_Thi = new frmChon_Bai_Thi();
                chon_Bai_Thi.ShowDialog();
            }
            //có Đề  Thi
            if (_ma_de_thi_ != null && Dem_Lan_Bam == 0)
            {
                //Load De
                De = BUS_De_Thi.Lay_De_Thi_(_ma_de_thi_);
                Thoi_gian_lam_bai   = BUS_De_Thi.Thoi_Gian_Thi(_ma_de_thi_);
                DS_Cau_Tra_Loi      = new List <CauTraLoi>();
                lbSTT_Question.Text = "Câu " + (_vi_tri_Cau_hoi_ + 1).ToString() + " / " + De.De.Count.ToString();
                Dem_Lan_Bam         = 1;

                //set up Thoi Gian
                lb_minute.Text = (Thoi_gian_lam_bai - 1).ToString();
                lb_second.Text = "59";
                Start_time     = DateTime.Now;
                Thoi_Gian.Start();
            }
        }