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); }
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(); }
public InsCheckBase(IInsolation insService, Section section) { this.insService = insService; this.section = section; this.isVertical = section.IsVertical; DefineInsSideCells(); }
public CuttingOrdinary(HouseSpot houseSpot, IDBService dbService, IInsolation insService) { this.houseSpot = houseSpot; this.dbService = dbService; this.insService = insService; // Определение шагов секций SectionSteps = GetSectionSteps(); }
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(); }
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); }