public static ReporteDetalleFactura Instance() { if (((frmInstance == null) || (frmInstance.IsDisposed == true))) { frmInstance = new ReporteDetalleFactura(); } else { frmInstance.BringToFront(); } return(frmInstance); }
private void ImprimirFactura(string tipoFactura) { switch (tipoFactura) { case "1": ReporteDetalleFactura reporteDetalleFactura = null; reporteDetalleFactura = ReporteDetalleFactura.Instance(); reporteDetalleFactura.Visible = false; reporteDetalleFactura.Show(); break; case "2": ReporteDetalleFacturaFiscal reporteDetalleFacturaFiscal = null; reporteDetalleFacturaFiscal = ReporteDetalleFacturaFiscal.Instance(); reporteDetalleFacturaFiscal.Visible = false; reporteDetalleFacturaFiscal.Show(); break; default: break; } }
private void ImprimirUltimaFactura(int tipoFactura) { switch (tipoFactura) { case 1: ReporteDetalleFactura reporteDetalleFactura = null; reporteDetalleFactura = ReporteDetalleFactura.Instance(); reporteDetalleFactura.Visible = false; reporteDetalleFactura.Show(); break; case 2: ReporteDetalleFacturaFiscal reporteDetalleFacturaFiscal = null; reporteDetalleFacturaFiscal = ReporteDetalleFacturaFiscal.Instance(); reporteDetalleFacturaFiscal.Visible = false; reporteDetalleFacturaFiscal.Show(); break; default: break; } }