Ejemplo n.º 1
0
        private void btn_Back_Click(object sender, EventArgs e)
        {
            this.Dispose();
            UCDetailedOutline uC = new UCDetailedOutline(pnl_container, sub_id, isAdmin);

            cMain.loadUC(pnl_container, uC);
        }
Ejemplo n.º 2
0
        private void btn_delete_Click(object sender, EventArgs e)
        {
            CDetailedOutline cDetailedOutline = new CDetailedOutline();
            var result = MessageBox.Show("Chắc chắn xóa?", "Thông báo", MessageBoxButtons.OKCancel);

            if (result == DialogResult.OK)
            {
                cDetailedOutline.Delete(sub_id);
            }
            this.Dispose();
            UCDetailedOutline uCDetailedOutline = new UCDetailedOutline(pnl_contain, sub_id, isAdmin);

            cMain.loadUC(pnl_contain, uCDetailedOutline);
        }
Ejemplo n.º 3
0
 private void btn_Edit_Click(object sender, EventArgs e)
 {
     if (txt_description.Text != "" && txt_LM.Text != "" && txt_SD.Text != "" && txt_SE.Text != "")
     {
         detailed.Description        = descriptions;
         detailed.Learning_Materials = learningMaterials;
         detailed.Scientific_Ethics  = scientificEthics;
         detailed.Student_Duties     = studentDuties;
         cDetailedOutline.Update(sub_id, detailed);
         MessageBox.Show("Sửa thông tin thành công");
         this.Dispose();
         UCDetailedOutline uCDetailedOutline = new UCDetailedOutline(pnl_container, sub_id, isAdmin);
         cMain.loadUC(pnl_container, uCDetailedOutline);
     }
     else
     {
         MessageBox.Show("Vui lòng điền đầy đủ thông tin");
     }
 }
Ejemplo n.º 4
0
        private void btn_Add_Click(object sender, EventArgs e)
        {
            if (countSE != 0 && countSD != 0 && countLM != 0 && countdescription != 0)
            {
                detailedOutlines.Description        = descriptions;
                detailedOutlines.Learning_Materials = learningMaterials;
                detailedOutlines.Scientific_Ethics  = scientificEthics;
                detailedOutlines.Student_Duties     = studentDuties;
                cDetailedOutline.addDetailedOutline(sub_id, detailedOutlines);
                MessageBox.Show("Thành Công");

                this.Dispose();
                UCDetailedOutline uCDetailedOutline = new UCDetailedOutline(pnl_container, sub_id, isAdmin);
                cMain.loadUC(pnl_container, uCDetailedOutline);
            }
            else
            {
                MessageBox.Show("Vui lòng điền đầy đủ thông tin");
            }
        }
Ejemplo n.º 5
0
        private void btn_detailedOutline_Click(object sender, EventArgs e)
        {
            UCDetailedOutline uCDetailedOutline = new UCDetailedOutline(pnl_container, Sub_id, isAdmin);

            cMain.loadUC(pnl_container, uCDetailedOutline);
        }