private void btnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     GUI.Syllabus.GUI_Syllabus_Schedule ScheAdd = new GUI_Syllabus_Schedule();
     ScheAdd.idS = idS;
     ScheAdd.ShowDialog();
     loadata();
 }
        private void gvSchedule_DoubleClick(object sender, EventArgs e)
        {
            string id = gvSchedule.GetRowCellValue(index, this.ID).ToString();

            GUI.Syllabus.GUI_Syllabus_Schedule ScheEdit = new GUI_Syllabus_Schedule();
            ScheEdit.id = id;
            ScheEdit.ShowDialog();
            loadata();
        }
        private void btnEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            string id = gvSchedule.GetRowCellValue(index, this.ID).ToString();

            GUI.Syllabus.GUI_Syllabus_Schedule ScheEdit = new GUI_Syllabus_Schedule();
            ScheEdit.id  = id;
            ScheEdit.idS = idS;
            ScheEdit.idp = idp;
            ScheEdit.ShowDialog();
            loadata();
        }