private void bttest_Click(object sender, EventArgs e)
        {
            LamBaiTracNghiem lb = new LamBaiTracNghiem();

            lb.MAMONHOC = mamonhoc;
            lb.MADETHI  = txtmadecauhoi.Text;
            lb.ShowDialog();
        }
Esempio n. 2
0
 private void btlambai_Click(object sender, EventArgs e)
 {
     if (cbmadethi.Text == "")
     {
         MessageBox.Show("Chưa chọn mã đề thi.", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         LamBaiTracNghiem lbtn = new LamBaiTracNghiem();
         lbtn.Phut      = int.Parse(cbthoigian.Text);
         lbtn.Tenmonthi = cbtenmon.Text;
         lbtn.Mathisinh = Mathisinh;
         lbtn.MAMONHOC  = cbmamonhoc.Text;
         lbtn.MADETHI   = cbmadethi.Text;
         this.Hide();
         lbtn.ShowDialog();
         Application.Exit();
     }
 }