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;
     }
 }
Пример #2
0
        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;
            }
        }