private void buttonReporteFechas_Click(object sender, EventArgs e) { PantallaReporteFechas newPant = new PantallaReporteFechas(this.codAlmacen); newPant.Owner = this; //this.Visible = false; newPant.ShowDialog(); newPant.Dispose(); }
public void abrirPantallaReporteFechas(Almacen almacenSeleccionado) { if (almacenSeleccionado != null) { PantallaReporteFechas pantallaReporte = new PantallaReporteFechas(this.almacenActual.IdAlmacen); pantallaReporte.Owner = this; pantallaReporte.ShowDialog(); pantallaReporte.Dispose(); } }