Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Produto_Cadastro cmd = new Produto_Cadastro();

            cmd.ShowDialog();
            dataGridView1.DataSource = cmd_produto.seleciona_listagem(new Zenfox_Software_OO.Cadastros.Entidade_Produto());
        }
Esempio n. 2
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         Produto_Cadastro cmd = new Produto_Cadastro();
         cmd.id = Int32.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString());
         cmd.preenche_campos();
         cmd.ShowDialog();
         dataGridView1.DataSource = cmd_produto.seleciona_listagem(new Zenfox_Software_OO.Cadastros.Entidade_Produto());
     }
     catch
     {
     }
 }