private void btnInforme_Click(object sender, EventArgs e) { try { Cursor = Cursors.WaitCursor; List <ReporteAccidenteBE> lstReporte = null; lstReporte = new ReporteAccidenteBL().ListadoCantidadAnualEmpresaResponsable(Convert.ToInt32(cboTipo.EditValue)); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptAccidente = new RptVistaReportes(); objRptAccidente.VerRptAccidenteCantidadAnualEmpresa(lstReporte); objRptAccidente.ShowDialog(); } else { XtraMessageBox.Show("No hay información para el periodo seleccionado", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); } } Cursor = Cursors.Default; } catch (Exception ex) { Cursor = Cursors.Default; XtraMessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error); } }