Пример #1
0
        private void btnSalvar_Click(object sender, EventArgs e)
        {
            Chave        c   = new Chave();
            CadChavesBLL BLL = new CadChavesBLL();

            c = TelaToEntity();

            if (BLL.Cadastra(c))
            {
                MessageBox.Show("Cadastro Realizado com Sucesso");
                LimpaTela();
            }
            else
            {
                MessageBox.Show("Verifique os campos Obrigatórios");
                MensagemErro();
            }

            MensagemErro();
        }