Example #1
0
        private static List <BlockDataDTO> GetXBlockData(XBLOCK xblock, PSTFile pst)
        {
            var ret = new List <BlockDataDTO>();

            foreach (var bid in xblock.BIDEntries)
            {
                var bbtEntry = pst.GetBlockBBTEntry(bid);
                ret.AddRange(BlockBO.GetBBTEntryData(bbtEntry, pst));
            }
            return(ret);
        }
Example #2
0
        private static List <BlockDataDTO> GetXXBlockData(XXBLOCK xxblock, PSTFile pst)
        {
            var ret = new List <BlockDataDTO>();

            foreach (var bid in xxblock.XBlockBIDs)
            {
                var bbtEntry      = pst.GetBlockBBTEntry(bid);
                var curXblockData = BlockBO.GetBBTEntryData(bbtEntry, pst);
                //var curXblockData = BlockBO.GetXBlockData(curXblock);
                foreach (var block in curXblockData)
                {
                    ret.Add(block);
                }
            }
            return(ret);
        }
Example #3
0
        public static NodeDataDTO GetNodeData(SLENTRY entry, PSTFile pst)
        {
            var mainData = BlockBO.GetBBTEntryData(pst.GetBlockBBTEntry(entry.SubNodeBID), pst);

            if (entry.SubSubNodeBID != 0)
            {
                var subNodeData = BlockBO.GetSubNodeData(pst.GetBlockBBTEntry(entry.SubSubNodeBID), pst);
                return(new NodeDataDTO {
                    NodeData = mainData, SubNodeData = subNodeData
                });
            }

            return(new NodeDataDTO {
                NodeData = mainData, SubNodeData = null
            });
        }
Example #4
0
        public static NodeDataDTO GetNodeData(NBTENTRY entry, PSTFile pst)
        {
            var mainData = BlockBO.GetBBTEntryData(pst.GetBlockBBTEntry(entry.BID_Data), pst);

            if (entry.BID_SUB != 0)
            {
                var subnodeData = BlockBO.GetSubNodeData(pst.GetBlockBBTEntry(entry.BID_SUB), pst);
                return(new NodeDataDTO {
                    NodeData = mainData, SubNodeData = subnodeData
                });
            }

            return(new NodeDataDTO {
                NodeData = mainData, SubNodeData = null
            });
        }