private void btn_Back_Click(object sender, EventArgs e) { UCExams uCExams = new UCExams(pnl_container, sub_id, isAdmin); this.Dispose(); cMain.loadUC(pnl_container, uCExams); }
private void btn_delete_Click(object sender, EventArgs e) { CExam cExam = new CExam(); var result = MessageBox.Show("Chắc chắn xóa?", "Thông báo", MessageBoxButtons.OKCancel); if (result == DialogResult.OK) { cExam.Delete(subId, examId); } this.Dispose(); UCExams uCExams = new UCExams(pnl_contain, subId, isAdmin); cMain.loadUC(pnl_contain, uCExams); }
private void btn_Edit_Click(object sender, EventArgs e) { if (txt_date.Text != "" && txt_Description.Text != "" && txt_ExamID.Text != "" && txt_percentage.Text != "" && txt_tool.Text != "") { exam.ID_Test = this.txt_ExamID.Text; exam.Exercise = this.txt_Description.Text; exam.ID_CDR = CDRs; exam.Date = this.txt_date.Text; exam.Tool = this.txt_tool.Text; exam.Percentage = this.txt_percentage.Text; cExam.Update(subId, examId, exam); MessageBox.Show("Sửa thông tin thành công"); UCExams uCExams = new UCExams(pnl_container, subId, isAdmin); cMain.loadUC(pnl_container, uCExams); } else { MessageBox.Show("Vui lòng điền đầy đủ thông tin"); } }
private void btn_exams_Click(object sender, EventArgs e) { UCExams uCExams = new UCExams(pnl_container, Sub_id, isAdmin); cMain.loadUC(pnl_container, uCExams); }