コード例 #1
0
        public void NewOuterCells()
        {
            ChartDataPointInstancesList dataPoints = this.CurrentMultiChart.DataPoints;

            if (0 >= this.m_currentCellInnerIndex && dataPoints.Count != 0)
            {
                return;
            }
            Chart chart = (Chart)base.m_reportItemDef;

            if (chart.ProcessingInnerGrouping == Pivot.ProcessingInnerGroupings.Column)
            {
                ChartDataPointInstanceList value = new ChartDataPointInstanceList();
                dataPoints.Add(value);
            }
            if (0 < this.m_currentCellInnerIndex)
            {
                this.m_currentCellOuterIndex++;
                this.m_currentCellInnerIndex = 0;
            }
        }
コード例 #2
0
        public ChartDataPointInstance AddCell(ReportProcessing.ProcessingContext pc, int currCellDPIndex)
        {
            ChartDataPointInstancesList dataPoints = this.CurrentMultiChart.DataPoints;
            Chart chart = (Chart)base.m_reportItemDef;
            int   num   = (currCellDPIndex < 0) ? this.GetCurrentCellDPIndex() : currCellDPIndex;
            ChartDataPointInstance chartDataPointInstance = new ChartDataPointInstance(pc, chart, this.GetCellDataPoint(num), num);

            if (chart.ProcessingInnerGrouping == Pivot.ProcessingInnerGroupings.Column)
            {
                dataPoints[this.m_currentCellOuterIndex].Add(chartDataPointInstance);
            }
            else
            {
                if (this.m_currentCellOuterIndex == 0)
                {
                    Global.Tracer.Assert(dataPoints.Count == this.m_currentCellInnerIndex);
                    ChartDataPointInstanceList value = new ChartDataPointInstanceList();
                    dataPoints.Add(value);
                }
                dataPoints[this.m_currentCellInnerIndex].Add(chartDataPointInstance);
            }
            this.m_currentCellInnerIndex++;
            return(chartDataPointInstance);
        }