public SubRegion(DataRow row) : base(row) { int idRealRegion; int.TryParse(row[2].ToString(), out idRealRegion); _realRegion = RealRegionList.GetUniqueInstance().GetItem(idRealRegion) as RealRegion; }
public SubRegion GetItem(RealRegion realRegion) { if (realRegion.RegionRR == null) return null; return List.Where(item => (item as SubRegion).RealRegion.ID == realRegion.ID).Select(item => item as SubRegion).First(); }
public SubRegion(DataRow row) : base(row) { int idRealRegion; int.TryParse(row[2].ToString(), out idRealRegion); _realRegion = RealRegionList.GetUniqueInstance().GetItem(idRealRegion) as RealRegion; }
public LpuCompetitors(DataRow row) : base(row) { _inn = row[2].ToString(); int idRealRegion; int.TryParse(row[3].ToString(), out idRealRegion); RealRegionList realRegionList = RealRegionList.GetUniqueInstance(); _realRegion = realRegionList.GetItem(idRealRegion) as RealRegion; _kpp = row[4].ToString(); }
public LpuCompetitors(DataRow row) : base(row) { _inn = row[2].ToString(); int idRealRegion; int.TryParse(row[3].ToString(), out idRealRegion); RealRegionList realRegionList = RealRegionList.GetUniqueInstance(); _realRegion = realRegionList.GetItem(idRealRegion) as RealRegion; _kpp = row[4].ToString(); }