Ejemplo n.º 1
0
        private void btnAtualizaCadast_Click(object sender, EventArgs e)
        {
            ProdutoTableAdapter taPessoa = new ProdutoTableAdapter();

            taPessoa.UpdateQuery(Convert.ToInt64(txtCodBarras.Text), txtDesc.Text, txtMarca.Text, txtEmbalagem.Text, txtTipo.Text, int.Parse(txtQuantidade.Text), decimal.Parse(txtPreco.Text), txtFoto.Text, int.Parse(txtCod.Text), int.Parse(txtCod.Text));
            MessageBox.Show("Produto Atualizado com sucesso!");
            this.Close();
        }