コード例 #1
0
        public void UpdateCreateState(PageItem dataRegion, int dataRegionIndex, List <int> pageItemsAbove, PageContext pageContext)
        {
            this.m_dataRegionIndex     = dataRegionIndex;
            this.m_relativeTop         = this.m_pageItem.ItemPageSizes.Top - dataRegion.ItemPageSizes.Top;
            this.m_relativeBottom      = this.m_pageItem.ItemPageSizes.Bottom - dataRegion.ItemPageSizes.Bottom;
            this.m_relativeTopToBottom = this.m_pageItem.ItemPageSizes.Top - dataRegion.ItemPageSizes.Bottom;
            if (pageItemsAbove != null)
            {
                this.m_pageItem.PageItemsAbove = new List <int>(pageItemsAbove);
            }
            PaddItemSizes paddItemSizes = this.m_pageItem.ItemRenderSizes as PaddItemSizes;

            if (paddItemSizes != null)
            {
                if (pageContext != null)
                {
                    this.m_renderItemSize = pageContext.GetSharedRenderRepeatItemSizesElement(paddItemSizes, true, true);
                }
                else
                {
                    this.m_renderItemSize = new PaddItemSizes(paddItemSizes);
                }
            }
            else if (pageContext != null)
            {
                this.m_renderItemSize = pageContext.GetSharedRenderRepeatItemSizesElement(this.m_pageItem.ItemRenderSizes, false, false);
            }
            else
            {
                this.m_renderItemSize = new ItemSizes(this.m_pageItem.ItemRenderSizes);
            }
        }
コード例 #2
0
        public override ItemSizes GetNewItem()
        {
            PaddItemSizes paddItemSizes = new PaddItemSizes(this);

            paddItemSizes.DeltaY = base.m_deltaY;
            return(paddItemSizes);
        }
コード例 #3
0
        public override ItemSizes WritePaginationInfo()
        {
            PaddItemSizes paddItemSizes = new PaddItemSizes(this);

            paddItemSizes.DeltaY = base.m_deltaY;
            paddItemSizes.ID     = null;
            return(paddItemSizes);
        }
コード例 #4
0
 public override void Update(ItemSizes paddItemSizes, bool returnPaddings)
 {
     this.Clean();
     base.Update(paddItemSizes, returnPaddings);
     if (returnPaddings)
     {
         PaddItemSizes paddItemSizes2 = paddItemSizes as PaddItemSizes;
         if (paddItemSizes2 != null)
         {
             this.m_paddingRight  = paddItemSizes.PaddingRight;
             this.m_paddingBottom = paddItemSizes.PaddingBottom;
         }
     }
 }
コード例 #5
0
        public void UpdateSizes(PageContext pageContext)
        {
            PaddItemSizes paddItemSizes = this.m_renderItemSize as PaddItemSizes;

            if (paddItemSizes != null)
            {
                if (pageContext != null)
                {
                    this.m_pageItem.ItemRenderSizes = pageContext.GetSharedRenderItemSizesElement(paddItemSizes, true, true);
                }
                else
                {
                    this.m_pageItem.ItemRenderSizes = new PaddItemSizes(paddItemSizes);
                }
            }
            else if (pageContext != null)
            {
                this.m_pageItem.ItemRenderSizes = pageContext.GetSharedRenderItemSizesElement(this.m_renderItemSize, false, false);
            }
            else
            {
                this.m_pageItem.ItemRenderSizes = new ItemSizes(this.m_renderItemSize);
            }
        }
コード例 #6
0
 public PaddItemSizes(PaddItemSizes paddItemSizes)
     : base(paddItemSizes)
 {
     this.m_paddingRight  = paddItemSizes.PaddingRight;
     this.m_paddingBottom = paddItemSizes.PaddingBottom;
 }