private void txt_TimeAnswer_TextChanged(object sender, EventArgs e)
{
if (txt_TimeAnswer.Text != "")
{
if (Convert.ToInt32(txt_TimeAnswer.Text) == 0)
{
MessageBox.Show("Vui lòng nhập thời gian hiển thị đáp án lớn hơn 0.", "Cảnh Báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
txt_TimeAnswer.Text = "";
}
else
{
if (Convert.ToInt32(txt_TimeAnswer.Text) >300)
{
MessageBox.Show("Vui lòng nhập thời gian hiển thị đáp án nhỏ hơn hoặc bằng 300.", "Cảnh Báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
txt_TimeAnswer.Text = "";
}
}
}
}