private void metroButton5_Click(object sender, EventArgs e) { if (metroTextBox4.Text == "") { access_data d = new access_data(); d.InsertNoficationInterval(0); } else { access_data d = new access_data(); d.InsertNoficationInterval(Convert.ToInt32(metroTextBox4.Text)); } MetroMessageBox.Show(this, "Information successfully updated", "WSH notify", MessageBoxButtons.OK, MessageBoxIcon.Information); }