Beispiel #1
0
        /// <summary>
        /// Creates the allocation map.
        /// </summary>
        /// <param name="file">The file.</param>
        /// <returns></returns>
        private AllocationMap CreateAllocationMap(DatabaseFile file)
        {
            var allocationMap = new AllocationMap();

            allocationMap.FileId      = file.FileId;
            allocationMap.File        = file;
            allocationMap.ExtentCount = file.Size / 8;
            allocationMap.Dock        = DockStyle.Fill;
            allocationMap.MapLayers   = AllocationLayers;

            allocationMap.PageClicked   += AllocationMap_PageClicked;
            allocationMap.PageOver      += AllocationMap_PageOver;
            allocationMap.RangeSelected += AllocationMap_RangeSelected;

            AllocationMaps.Add(file.FileId, allocationMap);

            return(allocationMap);
        }