Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 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");
     }
 }
Exemplo n.º 4
0
        private void btn_exams_Click(object sender, EventArgs e)
        {
            UCExams uCExams = new UCExams(pnl_container, Sub_id, isAdmin);

            cMain.loadUC(pnl_container, uCExams);
        }