Exemplo n.º 1
0
        private void salvar(Contatos contato)
        {
            CadastroDLL.Cadastro cdtDLL = new CadastroDLL.Cadastro();

            contato.Nome     = txtNome.Text.ToUpper();
            contato.Endereco = txtEndereco.Text.ToUpper();
            contato.Telefone = txtTelefone.Text.ToUpper();
            contato.Celular  = txtCelular.Text.ToUpper();
            contato.Email    = txtEmail.Text.ToUpper();
        }
Exemplo n.º 2
0
 private void DgvAgenda_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     CadastroDLL.Cadastro cdtDLL = new CadastroDLL.Cadastro();
     try
     {
         dgvAgenda.DataSource = cdtDLL.ExibirDadosDAO();
     }
     catch (Exception erro)
     {
         MessageBox.Show("Erro ao exibir os dados" + erro);
     }
 }