private void Agregar_Click(object sender, EventArgs e)
        {
            var alta = new ProductosGestion();

            alta.ShowDialog();
            ProductosBindingSource.ResetBindings(false);
        }
        private void FacturaReporte_Load(object sender, EventArgs e)
        {
            Facturas factura = BLL.FacturasBLL.Buscar(FacturaId);

            FacturasBindingSource.Add(factura);
            foreach (var producto in BLL.ProductosBLL.Productos(FacturaId))
            {
                ProductosBindingSource.Add(producto);
            }
            this.reportViewer1.RefreshReport();
        }
        private void Editar_Click(object sender, EventArgs e)
        {
            var actual = GetProducto();

            if (actual == null)
            {
                return;
            }
            var editar = new ProductosGestion(actual.Codigo);

            editar.ShowDialog();
            ProductosBindingSource.ResetBindings(false);
        }
        private void Eliminar_Click(object sender, EventArgs e)
        {
            var actual = GetProducto();

            if (actual == null)
            {
                return;
            }
            if (MessageBox.Show($"¿Seguro desea eliminar el producto: {actual.Descripcion}", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
            {
                return;
            }
            _presentador.EliminarProducto(actual);
            ProductosBindingSource.ResetBindings(false);
        }