コード例 #1
0
        public void bindDataProducto()
        {
            ModificacionesProductos mp = new ModificacionesProductos(_vp);


            mp.txtID_P.Text        = _vp.dgvProductos.CurrentRow.Cells[0].Value.ToString();
            mp.txtDescripcion.Text = _vp.dgvProductos.CurrentRow.Cells[1].Value.ToString();
            mp.txtPrecio.Text      = _vp.dgvProductos.CurrentRow.Cells[2].Value.ToString().Replace('.', ',');
            mp.txtCantidadAct.Text = _vp.dgvProductos.CurrentRow.Cells[3].Value.ToString();
            mp.txtCantidadMin.Text = _vp.dgvProductos.CurrentRow.Cells[4].Value.ToString();
            mp.txtCodProd.Text     = _vp.dgvProductos.CurrentRow.Cells[5].Value.ToString();
            mp.cmbCategoria.Text   = _vp.dgvProductos.CurrentRow.Cells[6].Value.ToString();


            mp.ShowDialog();
        }
コード例 #2
0
 public VistaProductosController(ModificacionesProductos mp)
 {
     _mp   = mp;
     _pdao = new ProductosDao();
 }
コード例 #3
0
 public ModificacionProductosController(ModificacionesProductos mp)
 {
     _mp = mp;
 }