コード例 #1
0
        private void comboBoxProductos_SelectionChangeCommitted(object sender, EventArgs e)
        {
            Producto productoInstancia = ObtenerProductoPorId();

            if (productoInstancia == null)
            {
                MessageBox.Show("ERROR AL RECUPERAR PRECIO Y NOMBRE DE ESTE PRODUCTO");
            }
            else
            {
                ServiciosActuales        = servicioRepository.ConsultarServicioFiltroProducto(productoInstancia.Id);
                dataGridView1.DataSource = ServiciosActuales;
            }
        }