Пример #1
0
        private void btnThemHocSinh_Click(object sender, EventArgs e)
        {
            var    LopDuocChon = BDSLopHoc.Current as Classroom;
            String ID          = LopDuocChon.ID;
            var    f           = new frmHocSinhChiTiet(ID);

            if (f.ShowDialog() == DialogResult.OK)
            {
                DanhSachLopHoc();
            }
        }
Пример #2
0
        private void btnSuaHocSinh_Click(object sender, EventArgs e)
        {
            var HocSinhDangChon = bdsSinhVien.Current as Student;

            if (HocSinhDangChon.ID != null)
            {
                var f = new frmHocSinhChiTiet(HocSinhDangChon);
                if (f.ShowDialog() == DialogResult.OK)
                {
                    DanhSachLopHoc();
                }
            }
        }