Esempio n. 1
0
        public override Result Calculate()
        {
            KitchenUpCalculator calculator = new KitchenUpCalculator
            {
                Name             = Name,
                Sсheme           = Sсheme,
                IconPath         = IconPath,
                BackWall         = BackWall,
                Number           = Number,
                SubScheme        = SubScheme,
                _dimentions      = _dimentions,
                _facade          = _facade,
                _shelfPo         = _shelfPo,
                _shelfMinusTwoMm = _shelfMinusTwoMm,
                _shelfForRazdel  = _shelfForRazdel,
                _shelfGlass      = _shelfGlass
            };

            Result result = new Result
            {
                ModuleName    = calculator.GetModuleName(),
                ImagePath     = calculator.GetImagePath(),
                DimensionInfo = calculator.GetDimensionInfo(),
                DetailsInfo   = calculator.GetDetailsInfo(),
                FurnitureInfo = calculator.GetFurnitureInfo(),
                ShelfInfo     = calculator.GetShelfInfo(),
                LoopsInfo     = calculator.GetLoopsInfo()
            };

            return(result);
        }
Esempio n. 2
0
        public override Result Calculate()
        {
            KitchenUpCalculator calculator = new KitchenUpCalculator
            {
                Name              = Name,
                Sсheme            = Sсheme,
                IconPath          = IconPath,
                BackPanelAssembly = BackPanelAssembly,
                Number            = Number,
                SubScheme         = SubScheme,
                _dimentions       = _dimentions,
                _facade           = _facade,
                _shelfAssembly    = _shelfAssembly,
                _shelfsCount      = _shelfsCount
            };

            Result result = new Result
            {
                ModuleName    = calculator.GetModuleName(),
                ImagePath     = calculator.GetImagePath(),
                MainInfo      = calculator.GetMainInfo(),
                DetailsInfo   = calculator.GetDetailsInfo(),
                FurnitureInfo = calculator.GetFurnitureInfo(),
                ShelfInfo     = calculator.GetShelfInfo(),
                LoopsInfo     = calculator.GetLoopsInfo()
            };

            return(result);
        }