private void Button1_Click(object sender, EventArgs e) { bool found = false; string HSPName = hspNameTxtBox.Text; found = DBMng.findHSP(HSPName); if (found) { HSPFound.Text = "HSP found: Y"; } else { HSPFound.Text = "HSP found: N"; } }