private void btn_AddStudentForClass_AddClass_Click(object sender, EventArgs e)
 {
     using (Students.StudentListToEditClass studentList = new Students.StudentListToEditClass(this.MaLop.ToString()))
     {
         if (studentList.ShowDialog() == DialogResult.OK)
         {
             this.grd_StudentList_AddClass.DataSource = studentList.tableSources;
             txt_ClassTotal_AddClass.Text             = grd_StudentList_AddClass_View.RowCount.ToString();
         }
     }
 }
Exemple #2
0
        private void btn_AddStudentForClass_ClassInformation_Click(object sender, EventArgs e)
        {
            btn_Save_ClassInformation_Click(null, null);

            using (Students.StudentListToEditClass frm = new Students.StudentListToEditClass(this.classID))
            {
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    this.grd_StudentList_ClassInformation.DataSource = frm.tableSources;
                    txt_ClassTotal_ClassInformation_Edit.Text        = grd_StudentList_ClassInformation_View.RowCount.ToString();
                }
            }
        }