private void btnConfirma_Click(object sender, EventArgs e) { mSubMenu modelMenu = new mSubMenu(); BUSINESS.rSubMenu regraMenu = new BUSINESS.rSubMenu(); try { modelMenu = this.PegaDadosTela(); regraMenu.CadastraSubMenu(modelMenu); MessageBox.Show("Cadastrado com sucesso!!"); } catch (Exception ex) { MessageBox.Show(ex.Message); } finally { modelMenu = null; } }