private void button1_Click(object sender, EventArgs e) { Form_DSSV_KyThi f = new Form_DSSV_KyThi(); this.Hide(); f.Show(); }
private void bt_Exit_Click(object sender, EventArgs e) { Form_DSSV_KyThi f = new Form_DSSV_KyThi(); f.KyThi1 = this.KyThi; this.Hide(); f.Show(); }
private void btn_XemDanhSach_Click(object sender, EventArgs e) { if (txb_TenKyThi != null && txb_TenKyThi.Text != "") { Form_DSSV_KyThi f = new Form_DSSV_KyThi(); TTKT KT = new TTKT(); KT.MaTTKT = int.Parse(dtgv_ThongTinKyThi.CurrentRow.Cells["MaTTKT"].Value.ToString()); KT.TenKyThi = dtgv_ThongTinKyThi.CurrentRow.Cells["TenKyThi"].Value.ToString(); KT.NgayThi = dtgv_ThongTinKyThi.CurrentRow.Cells["NgayThi"].Value.ToString(); KT.DiaDiemTHi = dtgv_ThongTinKyThi.CurrentRow.Cells["Diadiemthi"].Value.ToString(); KT.CoQuanToChuc = dtgv_ThongTinKyThi.CurrentRow.Cells["CoQuanToChuc"].Value.ToString(); f.KyThi1 = KT; f.Show(); } else { MessageBox.Show("Bạn chưa chọn kỳ thi!", "Thông báo"); } }
private void bt_ADD_Click(object sender, EventArgs e) { foreach (CheckBox ckb in listCheckBox) { if (ckb.Checked == true) { SinhVien_KyThiDAO.Add(int.Parse(ckb.Text), MaKyThi); int MSVKT = SinhVien_KyThiDAO.GetMSVKTCuoi(); string MatKhau = TTKTDAO.GetMK(MaKyThi); string querry = "Insert into ThanhVien values ('" + ckb.Text + "','" + MatKhau + "'," + MSVKT + " )"; DataProvider.instanse.ExecuteNonquerry(querry); } } MessageBox.Show("Thêm Thành Công"); Form_DSSV_KyThi f = new Form_DSSV_KyThi(); f.KyThi1 = this.KyThi; this.Hide(); f.Show(); }