示例#1
0
 private void btnAlterarPed_Click(object sender, EventArgs e)
 {
     if (dtgPedidos.Rows.Count > 0)
     {
         novoPedido = new frmIncVenda(idusu, "ALTERAR", Convert.ToInt32(dtgPedidos.CurrentRow.Cells["IDVDA"].Value));
         novoPedido.ShowDialog();
     }
     else
     {
         MessageBox.Show("Não há pedido para ser alterado", "Fim", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
示例#2
0
 private void btnNovoPedido_Click(object sender, EventArgs e)
 {
     novoPedido = new frmIncVenda(idusu, "INSERIR", 0);
     novoPedido.ShowDialog();
 }