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); } }
public override ItemSizes GetNewItem() { PaddItemSizes paddItemSizes = new PaddItemSizes(this); paddItemSizes.DeltaY = base.m_deltaY; return(paddItemSizes); }
public override ItemSizes WritePaginationInfo() { PaddItemSizes paddItemSizes = new PaddItemSizes(this); paddItemSizes.DeltaY = base.m_deltaY; paddItemSizes.ID = null; return(paddItemSizes); }
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; } } }
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); } }
public PaddItemSizes(PaddItemSizes paddItemSizes) : base(paddItemSizes) { this.m_paddingRight = paddItemSizes.PaddingRight; this.m_paddingBottom = paddItemSizes.PaddingBottom; }