private void btnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     GUI.Program.GUI_Program_Syllabus sysadd = new GUI_Program_Syllabus();
     sysadd.idprogram = idPrg;
     sysadd.ShowDialog();
     loadData();
 }
        private void gvCourse_DoubleClick(object sender, EventArgs e)
        {
            string id = gvCourse.GetRowCellValue(index, this.ID).ToString();

            GUI.Program.GUI_Program_Syllabus sysedit = new GUI_Program_Syllabus();
            sysedit.idprogram = idPrg;
            sysedit.idsys     = id;
            sysedit.ShowDialog();
            loadData();
        }
        private void btnEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            string id = gvCourse.GetRowCellValue(index, this.ID).ToString();

            GUI.Program.GUI_Program_Syllabus sysedit = new GUI_Program_Syllabus();
            sysedit.idprogram = idPrg;
            sysedit.idsys     = id;
            sysedit.ShowDialog();
            loadData();
        }