Example #1
0
 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();
        }
Example #3
0
        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();
        }
Example #5
0
        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();
        }