private async void MethodLoadCaja() { await Task.Factory.StartNew(() => { try { var CollectionCajaAperturada = new BSGR_AperturaCierreCaja().CollectionESGR_AperturaCierreCaja().Where(x => x.ESGR_Estado.CodEstado == "APTCJ").ToList(); Application.Current.Dispatcher.Invoke(() => { CollectionESGR_Caja.Clear(); CollectionCajaAperturada.ForEach(x => { CollectionESGR_Caja.Add(x.ESGR_Caja); }); }); } catch (Exception ex) { CmpMessageBox.Show(SGRMessage.AdministracionCaja, ex.Message, CmpButton.Aceptar); } }); }