private static void Load(BasicDictionaries dictionaries) { CityDictionary = new Tm_Dictionary(dictionaries.CityDictionary); DistrictDictionary = new Tm_Dictionary(dictionaries.DistrictDictionary); StreetDictionary = new Tm_Dictionary(dictionaries.StreetDictionary); DCRecords = dictionaries.DCRecords; SDCRecords = dictionaries.SDCRecords; }
public static Tm_DictionaryItem GetItemById(this Tm_Dictionary sourceFirs, int Id) { return(sourceFirs.Dictionary.FirstOrDefault(x => x.nId == Id)); }