private ITreeNode getBuildingBlockNode(BuildingBlockDTO dto)
        {
            var buildingBlockNode = _nodeMapper.MapFrom(dto);

            foreach (var dtoBuilder in dto.Builder)
            {
                buildingBlockNode.AddChild(_nodeMapper.MapFrom(dtoBuilder));
            }
            return(buildingBlockNode);
        }
예제 #2
0
        protected void AddTimeReference()
        {
            var timeDTO = new ObjectBaseDTO
            {
                Id   = AppConstants.Time,
                Name = AppConstants.Time,
                Icon = ApplicationIcons.Time.IconName
            };

            _view.AddNode(_referenceMapper.MapFrom(timeDTO));
        }