Ejemplo n.º 1
0
 public SubRegion(DataRow row)
     : base(row)
 {
     int idRealRegion;
     int.TryParse(row[2].ToString(), out idRealRegion);
     _realRegion = RealRegionList.GetUniqueInstance().GetItem(idRealRegion) as RealRegion;
 }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
        public SubRegion(DataRow row)
            : base(row)
        {
            int idRealRegion;

            int.TryParse(row[2].ToString(), out idRealRegion);
            _realRegion = RealRegionList.GetUniqueInstance().GetItem(idRealRegion) as RealRegion;
        }
Ejemplo n.º 4
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();
        }
Ejemplo n.º 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();
        }