Exemple #1
0
        public static ICutting Create(HouseSpot houseSpot)
        {
            ICutting cutting;

            insService = new InsolationSection();

            if (dbService == null)
            {
                dbService = new DBService();
            }
            else
            {
                dbService.ResetSections();
            }

            if (houseSpot.IsTower)
            {
                cutting = null;
            }
            else
            {
                cutting = new CuttingOrdinary(houseSpot, dbService, insService);
            }
            return(cutting);
        }
Exemple #2
0
 public InsCheckCorner(IInsolation insService, Section section)
     : base(insService, section)
 {
     insTop        = section.InsTop.Select(s => s.InsValue).ToArray();
     insBot        = section.InsBot.Select(s => s.InsValue).ToArray();
     insBotReverse = insBot.Reverse().ToArray();
 }
Exemple #3
0
        public InsCheckBase(IInsolation insService, Section section)
        {
            this.insService = insService;
            this.section    = section;
            this.isVertical = section.IsVertical;

            DefineInsSideCells();
        }
Exemple #4
0
        public CuttingOrdinary(HouseSpot houseSpot, IDBService dbService, IInsolation insService)
        {
            this.houseSpot  = houseSpot;
            this.dbService  = dbService;
            this.insService = insService;

            // Определение шагов секций
            SectionSteps = GetSectionSteps();
        }
Exemple #5
0
 public InsCheckOrdinary(IInsolation insService, Section section)
     : base(insService, section)
 {
     insTopStandart        = section.InsTop.Select(m => m.InsValue).ToArray();
     insBotStandart        = section.InsBot.Select(m => m.InsValue).ToArray();
     insTopInvert          = insBotStandart;
     insBotInvert          = insTopStandart;
     insBotStandartReverse = insBotStandart.Reverse().ToArray();
     insBotInvertReverse   = insBotInvert.Reverse().ToArray();
 }
Exemple #6
0
        public static IInsCheck CreateInsCheck(IInsolation insService, Section section)
        {
            IInsCheck insCheck = null;

            if (section.IsCorner)
            {
                insCheck = new InsCheckCorner(insService, section);
            }
            else
            {
                insCheck = new InsCheckOrdinary(insService, section);
            }

            return(insCheck);
        }