private ObservableCollection <Tipos> CargarTablaXML(String x_tipo_codtabla) { try { Infrastructure.Aspect.CheckSUM.GenerarChekSum x_CargarTabla = new Infrastructure.Aspect.CheckSUM.GenerarChekSum(Infrastructure.Aspect.CheckSUM.GenerarChekSum.PathAppPublic, UsuarioTipos); System.Data.DataTable dtTabla = x_CargarTabla.CargarXML(new Infrastructure.Aspect.CheckSUM.CHKS_Tablas() { CHKS_Tabla = "Tipos" }); ObservableCollection <Tipos> ListTipos = new ObservableCollection <Tipos>(); if (dtTabla != null) { ListTipos = dtTabla.ToObservableCollection <Tipos>().Where(tipo => tipo.TIPO_CodTabla == x_tipo_codtabla).ToObservableCollection(); } else { return(SelectAllByTipoCodTabla(x_tipo_codtabla)); } return(ListTipos); } catch (Exception) { throw; } }