private void button_del_Click(object sender, EventArgs e) { if (del_input_validation()) { String statusMsg = ""; bool isSuccess; isSuccess = consMgr.delDrRmk(int.Parse(((PermissibleValueObj)comboBox_predefPhrase.SelectedItem).Value), ref statusMsg); if (isSuccess) { MessageBox.Show(statusMsg, "", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show(statusMsg, "", MessageBoxButtons.OK, MessageBoxIcon.Error); } reset(); } }