示例#1
0
        public override void Calculate()
        {
            string mark  = Block.GetPropValue <string>(propMark);
            int    side1 = Block.GetPropValue <int>(propSide1);
            int    side2 = Block.GetPropValue <int>(propSide2);
            string role  = SlabService.GetRole(Block);
            string desc  = Block.GetPropValue <string>(propDesc, false);

            opening = new SlabOpening(mark, side1, side2, role, desc, this);
            AddElement(opening);
        }
示例#2
0
        public override void Calculate()
        {
            string mark   = Block.GetPropValue <string>(propMark);
            double diam   = Block.GetPropValue <double>(propDiam);
            double depth  = Block.GetPropValue <double>(propDepth);
            int    length = Block.GetPropValue <int>(propLength);
            string role   = SlabService.GetRole(Block);
            string desc   = Block.GetPropValue <string>(propDesc, false);

            sleeve = new SlabSleeve(mark, diam, depth, length, role, desc, this);
            AddElement(sleeve);

            //double weightUnit = Block.GetPropValue<double>(propWeightUnit, isRequired:false);
            tube      = new Tube(diam, depth, length, this);
            tube.Mark = mark;
            tube.Calc();
            AddElement(tube);
        }
示例#3
0
 public SlabController(DungeonService dungeonService, SlabService slabService)
 {
     _dungeonService = dungeonService;
     _slabService    = slabService;
 }