private void filtros_button_Click(object sender, EventArgs e) { var frm = new InventarioFiltroForm(this, reporteFiltro); this.Hide(); frm.ShowDialog(); this.Show(); }
private async void exportar_inventario_button_Click(object sender, EventArgs e) { var reporteFiltro = new ReporteFiltroModelo { IncluirProductosSinUnidades = false }; var frm = new InventarioFiltroForm(this, reporteFiltro); this.Hide(); frm.ShowDialog(); this.Show(); var destino = AbrirDialogoGuardar(); if (destino == null) { return; } await ExportarReporte <ReporteInventarioModelo>(destino, reporteFiltro); reporteFiltro = null; }