private void btnCadastrarFuncionario_Click(object sender, EventArgs e) { try { int id = Convert.ToInt32(txtId.Text); business.RemoverFuncionario(id); MessageBox.Show("Deletado com Sucesso"); } catch (Exception ex) { MessageBox.Show(ex.Message); } }