private void btnSubmit_Click(object sender, EventArgs e) { //kiểm tra if (string.IsNullOrEmpty(txtHoTen.Text) | string.IsNullOrEmpty(txtEmail.Text) | dtBirthday.Value == null) { MessageBox.Show("Không được để trống các trường"); } else { if (TracNghiem.SuaThongTinHocSinh(temp.id, txtHoTen.Text, txtEmail.Text, dtBirthday.Value)) { //xuất thông báo MessageBox.Show("Sửa thành công"); } else { //xuất thông báo lỗi MessageBox.Show("Sửa thất bại"); } } }