private void btnGenerarReporte_Click(object sender, EventArgs e) { if (!dxErrorProviderReportes.HasErrors) { if (dateEditInit.DateTime <= dateEditFinal.DateTime) { CommonUtils.ReportesUtils reportesHilos = new CommonUtils.ReportesUtils(new CommonUtils.ReportesUtils.ResultDelegate(this.RefreshGrid)); Thread t = new Thread(new ThreadStart(reportesHilos.ThreadProc)); loadingQueryStarted(); t.Start(); } else { MessageBox.Show(this, "Fecha Inicio no puede ser mayor que Fecha Final", "Reportes Facturas", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { this.GetErrorProviderMessages(); } }
private void btnGenerarReporte_Click(object sender, EventArgs e) { if (!dxErrorProviderReportes.HasErrors) { if (dateEditInit.DateTime <= dateEditFinal.DateTime) { CommonUtils.ReportesUtils reportesHilos = new CommonUtils.ReportesUtils(new CommonUtils.ReportesUtils.ResultDelegate(this.RefreshGrid)); Thread t = new Thread(new ThreadStart(reportesHilos.ThreadProc)); loadingQueryStarted(); t.Start(); } else { MessageBox.Show(this, "Fecha Inicio no puede ser mayor que Fecha Final", "Reportes de Ventas", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { this.GetErrorProviderMessages(); } }