private bool ValidateCodeRegister(String classCode, String courseCode, int time) { if (SqlRequestFunction.RegisterIsExists(classCode, courseCode, time)) { MessageBox.Show("Lượt thi của Môn thi này cho lớp đó đã được tổ chức thi hai lần. Và không thể tổ chức thêm.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return(false); } return(true); }