public void NewOuterCells()
        {
            if (0 >= this.m_currentCellInnerIndex && this.m_cells.Count != 0)
            {
                return;
            }
            CustomReportItem customReportItem = (CustomReportItem)base.m_reportItemDef;

            if (customReportItem.ProcessingInnerGrouping == Pivot.ProcessingInnerGroupings.Column)
            {
                CustomReportItemCellInstanceList value = new CustomReportItemCellInstanceList();
                this.m_cells.Add(value);
            }
            if (0 < this.m_currentCellInnerIndex)
            {
                this.m_currentCellOuterIndex++;
                this.m_currentCellInnerIndex = 0;
            }
        }
        public CustomReportItemCellInstance AddCell(ReportProcessing.ProcessingContext pc)
        {
            CustomReportItem customReportItem = (CustomReportItem)base.m_reportItemDef;
            bool             flag             = customReportItem.ProcessingInnerGrouping == Pivot.ProcessingInnerGroupings.Column;
            int rowIndex;
            int colIndex;

            if (flag)
            {
                rowIndex = this.m_currentOuterStaticIndex;
                colIndex = this.m_currentInnerStaticIndex;
            }
            else
            {
                colIndex = this.m_currentOuterStaticIndex;
                rowIndex = this.m_currentInnerStaticIndex;
            }
            CustomReportItemCellInstance customReportItemCellInstance = new CustomReportItemCellInstance(rowIndex, colIndex, customReportItem, pc);

            if (flag)
            {
                this.m_cells[this.m_currentCellOuterIndex].Add(customReportItemCellInstance);
            }
            else
            {
                if (this.m_currentCellOuterIndex == 0)
                {
                    Global.Tracer.Assert(this.m_cells.Count == this.m_currentCellInnerIndex);
                    CustomReportItemCellInstanceList value = new CustomReportItemCellInstanceList();
                    this.m_cells.Add(value);
                }
                this.m_cells[this.m_currentCellInnerIndex].Add(customReportItemCellInstance);
            }
            this.m_currentCellInnerIndex++;
            return(customReportItemCellInstance);
        }