Exemplo n.º 1
0
        public void CargarFrmPedidoCab()
        {
            FrmPedidoEdit frm = new FrmPedidoEdit(this);

            if (!EsAlta)
            {
                CargarPedido();
            }
            frm.ShowDialog();
        }
Exemplo n.º 2
0
 private void dgvPedidos_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (dgvPedidos.CurrentCell != null) // Se valida que la fila actual no esté vacía
         {
             //int IdPedidoCab = Convert.ToInt32(dgvPedidos.Rows[e.RowIndex].Cells[0].Value.ToString());
             //clsPedidoCab clsPedCab = new clsPedidoCab();
             //clsPedCab.IdPedidoCab = IdPedidoCab;
             FrmPedidoEdit frm = new FrmPedidoEdit
             {
                 MdiParent   = this.MdiParent,
                 WindowState = FormWindowState.Maximized,
                 IdPedidoCab = Convert.ToInt32(dgvPedidos.Rows[e.RowIndex].Cells[0].Value.ToString())
             };
             frm.Show();
             //clsPedCab.CargarFrmPedidoCab();
         }
     }
     catch (Exception ex)
     {
         _ = ex.Message;
     }
 }