Beispiel #1
0
        private void btnExcluir_Click(object sender, EventArgs e)
        {
            string resp = "";

            resp = NEGOCIO.ExcluirContato(Convert.ToInt32(txtID.Text));
            MessageBox.Show("Morador Excluido");
        }
Beispiel #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            string resp = "";

            resp = NEGOCIO.ExcluirTel(Convert.ToInt32(textBox5.Text.Trim()), textBox1.Text.Trim(), textBox3.Text.Trim(), textBox2.Text.Trim(), textBox4.Text.Trim());
            MessageBox.Show("Telefone Excluido");
        }
Beispiel #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                string resp = "";

                resp = NEGOCIO.IncluirTel(Convert.ToInt32(textBox5.Text.Trim()), textBox1.Text.Trim(), textBox3.Text.Trim(), textBox2.Text.Trim(), textBox4.Text.Trim());
                MessageBox.Show("Telefone Incluido");
            }
            catch (Exception ex)
            {
            }
        }
Beispiel #4
0
        private void btnAltera_Click(object sender, EventArgs e)
        {
            try
            {
                string resp = "";

                resp = NEGOCIO.AlterarDados(Convert.ToInt32(txtID.Text.Trim()), this.txtNome.Text.Trim(), Convert.ToDateTime(txtNasc.Text.Trim()));

                MessageBox.Show("Contato Alterado Com Sucesso");
            }
            catch (Exception ex)
            {
            }
        }
Beispiel #5
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                string resp = "";

                resp = NEGOCIO.InserirContato(this.txtNome.Text.Trim(), Convert.ToDateTime(txtNasc.Text.Trim()), this.txtCel.Text.Trim(),
                                              this.txtRes.Text.Trim(), this.txtCom.Text.Trim(), this.txtFax.Text.Trim(), this.txtPes.Text.Trim(), this.txtProf.Text.Trim());

                MessageBox.Show("Contato Inserido Com Sucesso");
            }
            catch (Exception ex)
            {
            }
        }
Beispiel #6
0
 private void llG_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     dataGridView1.DataSource = NEGOCIO.BuscarContato("g");
 }
Beispiel #7
0
 private void btnBusca_Click(object sender, EventArgs e)
 {
     dataGridView1.DataSource = NEGOCIO.BuscarContato(this.txtBusca.Text.Trim());
 }
Beispiel #8
0
 private void llTodos_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     dataGridView1.DataSource = NEGOCIO.ListarContatos();
 }