private static void FinEsperaPorTarea(TipoEspera tipo) { string msg = null; switch (tipo) { case TipoEspera.Consulta: msg = msgResultConsulta; break; case TipoEspera.Actualizacion: msg = msgResultActualizacionOK; break; case TipoEspera.ActualizacionError: msg = msgResultActualizacionError; break; case TipoEspera.Reporte: msg = msgResultReporteOK; break; case TipoEspera.ReporteError: msg = msgResultReporteError; break; default: break; } // Indicar fin de espera con puntero normal _editForm.tslbInfo.Text = msg; Application.UseWaitCursor = false; Application.DoEvents(); }
private static void EsperaPorTarea(TipoEspera tipo) { string msg = null; switch (tipo) { case TipoEspera.Consulta: msg = msgEsperaConsulta; break; case TipoEspera.Actualizacion: msg = msgEsperaActualizacion; break; case TipoEspera.Reporte: msg = msgEsperaReporte; break; case TipoEspera.ReporteError: case TipoEspera.ActualizacionError: default: break; } // Indicar espera con puntero Wait _editForm.tslbInfo.Text = msg; Application.UseWaitCursor = true; Application.DoEvents(); }