void UpDateHocSinh() { HOCSINHDTO hs = new HOCSINHDTO(); hs.MaHocSinh = txtMaHocSinh.Text; hs.TenHocSinh = txtHoTen.Text; hs.NgaySinh = dtNgaySinh.Value; hs.DiaChi = txtDiaChi.Text; hs.Email = txtEmail.Text; if (rdbNam.Checked) { hs.GioiTinh = "Nam"; } else if (rdbNu.Checked) { hs.GioiTinh = "Nữ"; } HOCSINHBUS bus = new HOCSINHBUS(); bus.UpdateHocSinh(hs); MessageBox.Show("Cập nhật thành công!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); }