private void metroButtonModify_Click(object sender, EventArgs e) { if (metroTextBoxPhoneNo.Text != "") { bool bx = u.PatientModify(metroTextBoxPhoneNo.Text, metroTextBoxName.Text, metroTextBoxContactAddress.Text); if (bx == true) { MetroFramework.MetroMessageBox.Show(this, "Successfully Modified."); } else { MetroFramework.MetroMessageBox.Show(this, "Modification Failed!"); } } else { MetroFramework.MetroMessageBox.Show(this, "Please Enter Phone No."); } }