Beispiel #1
0
 internal void UpdateDetails(TableDetailRowCollection newRenderDetails)
 {
     if (m_children == null || newRenderDetails == null)
     {
         throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidOperation);
     }
     for (int i = 0; i < m_children.Length; i++)
     {
         ((ShimTableMember)m_children[i]).UpdateRow(newRenderDetails[i]);
     }
 }
Beispiel #2
0
 public void UpdateDetails(TableDetailRowCollection newRenderDetails)
 {
     if (base.m_children != null && newRenderDetails != null)
     {
         for (int i = 0; i < base.m_children.Length; i++)
         {
             ((ShimTableMember)base.m_children[i]).UpdateRow(((TableRowCollection)newRenderDetails)[i]);
         }
         return;
     }
     throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidOperation);
 }
        public override bool GetInstanceStartHidden()
        {
            switch (this.m_mode)
            {
            case Mode.StaticColumn:
                if (this.m_owner.RenderTableColumn.ColumnInstance == null)
                {
                    return(this.GetInstanceHidden());
                }
                return(this.m_owner.RenderTableColumn.ColumnInstance.StartHidden);

            case Mode.StaticRow:
                if (this.m_owner.RenderTableRow.InstanceInfo == null)
                {
                    return(this.GetInstanceHidden());
                }
                return(this.m_owner.RenderTableRow.InstanceInfo.StartHidden);

            case Mode.TableDetails:
            {
                TableDetailRowCollection tableDetailRowCollection = this.m_owner.RenderTableDetails[this.m_owner.Group.CurrentRenderGroupIndex];
                if (tableDetailRowCollection.InstanceInfo != null)
                {
                    return(tableDetailRowCollection.InstanceInfo.StartHidden);
                }
                return(this.GetInstanceHidden());
            }

            case Mode.TableGroup:
                if (this.m_owner.RenderTableGroup.InstanceInfo == null)
                {
                    return(this.GetInstanceHidden());
                }
                return(this.m_owner.RenderTableGroup.InstanceInfo.StartHidden);

            default:
                return(false);
            }
        }
Beispiel #4
0
        internal ShimTableMemberCollection(IDefinitionPath parentDefinitionPath, Tablix owner, ShimTableMember parent, TableDetailRowCollection detailRows)
            : base(parentDefinitionPath, owner, isColumnGroup: false)
        {
            m_rowDefinitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex();
            int count = detailRows.Count;

            m_children = new ShimTableMember[count];
            for (int i = 0; i < count; i++)
            {
                m_children[i] = new ShimTableMember(this, owner, parent, i, detailRows[i], KeepWithGroup.None, isFixedTableHeader: false);
            }
            m_rowDefinitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex();
        }
Beispiel #5
0
        public ShimTableMemberCollection(IDefinitionPath parentDefinitionPath, Tablix owner, ShimTableMember parent, TableDetailRowCollection detailRows)
            : base(parentDefinitionPath, owner, false)
        {
            this.m_rowDefinitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex();
            int count = detailRows.Count;

            base.m_children = new ShimTableMember[count];
            for (int i = 0; i < count; i++)
            {
                base.m_children[i] = new ShimTableMember(this, owner, parent, i, ((TableRowCollection)detailRows)[i], KeepWithGroup.None, false);
            }
            this.m_rowDefinitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex();
        }