Exemple #1
0
 private void btnEditarGrid_Click(object sender, EventArgs e)
 {
     if (dtgProdutos.Rows.Count > 0)
     {
         novoProduto = new frmIncProdutos(this, "EDITAR", Convert.ToInt32(dtgProdutos.CurrentRow.Cells["ID_PRO"].Value), Convert.ToInt32(idusu));
         novoProduto.Show();
     }
     else
     {
         MessageBox.Show("Nenhum registro selecionado para editar.", "Atenção", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Exemple #2
0
 private void btnIncluir_Click(object sender, EventArgs e)
 {
     novoProduto = new frmIncProdutos(this, "INCLUIR", 0, idusu);
     novoProduto.Show();
 }