Ejemplo n.º 1
0
 private void mtdCargar()
 {
     listValorAprox           = new List <clValorAprox>();
     objValorAprox            = new clValorAprox();
     listValorAprox           = objValorAprox.mtdConsultaValorAprox();
     dgvValorAprox.DataSource = listValorAprox;
 }
Ejemplo n.º 2
0
 private void btnEliminar_Click(object sender, EventArgs e)
 {
     objValorAprox = new clValorAprox();
     objValorAprox.idEmpresaProducto = idProductoBorrar;
     if (objValorAprox.mtdEliminar() > 0)
     {
         MessageBox.Show("Eliminado");
         mtdCargar();
     }
     else
     {
         MessageBox.Show("Error al Eliminar");
     }
 }