public void UpdateDataCellValues(AspNetCore.ReportingServices.ReportRendering.DataCell dataCell)
 {
     if (!this.m_isChartValues)
     {
         int num = this.m_cachedDataValues.Length;
         for (int i = 0; i < num; i++)
         {
             this.m_cachedDataValues[i].UpdateDataCellValue((dataCell == null || dataCell.DataValues == null) ? null : dataCell.DataValues[i]);
         }
     }
 }
 public DataValueCollection(RenderingContext renderingContext, AspNetCore.ReportingServices.ReportRendering.DataCell dataCell)
 {
     this.m_isChartValues = false;
     if (dataCell.DataValues == null)
     {
         this.m_cachedDataValues = new DataValue[0];
     }
     else
     {
         int count = dataCell.DataValues.Count;
         this.m_cachedDataValues = new DataValue[count];
         for (int i = 0; i < count; i++)
         {
             this.m_cachedDataValues[i] = new DataValue(renderingContext, dataCell.DataValues[i]);
         }
     }
 }
Exemple #3
0
 public override void SetNewContext()
 {
     base.SetNewContext();
     this.m_renderDataCell = null;
 }
 public DataCell this[int row, int column]
 {
     get
     {
         if (row >= 0 && row < this.m_rowsCount)
         {
             if (column >= 0 && column < this.m_columnsCount)
             {
                 DataCell dataCell = null;
                 if (row == 0 && column == 0)
                 {
                     dataCell = this.m_firstCell;
                 }
                 else if (row == 0)
                 {
                     if (this.m_firstRowCells != null)
                     {
                         dataCell = this.m_firstRowCells[column - 1];
                     }
                 }
                 else if (column == 0)
                 {
                     if (this.m_firstColumnCells != null)
                     {
                         dataCell = this.m_firstColumnCells[row - 1];
                     }
                 }
                 else if (this.m_cells != null && this.m_cells[row - 1] != null)
                 {
                     dataCell = this.m_cells[row - 1][column - 1];
                 }
                 if (dataCell == null)
                 {
                     dataCell = new DataCell(this.m_owner, row, column);
                     if (this.m_owner.UseCache)
                     {
                         if (row == 0 && column == 0)
                         {
                             this.m_firstCell = dataCell;
                         }
                         else if (row == 0)
                         {
                             if (this.m_firstRowCells == null)
                             {
                                 this.m_firstRowCells = new DataRowCells(this.m_columnsCount - 1);
                             }
                             this.m_firstRowCells[column - 1] = dataCell;
                         }
                         else if (column == 0)
                         {
                             if (this.m_firstColumnCells == null)
                             {
                                 this.m_firstColumnCells = new DataRowCells(this.m_rowsCount - 1);
                             }
                             this.m_firstColumnCells[row - 1] = dataCell;
                         }
                         else
                         {
                             if (this.m_cells == null)
                             {
                                 this.m_cells = new DataRowCells[this.m_rowsCount - 1];
                             }
                             if (this.m_cells[row - 1] == null)
                             {
                                 this.m_cells[row - 1] = new DataRowCells(this.m_columnsCount - 1);
                             }
                             this.m_cells[row - 1][column - 1] = dataCell;
                         }
                     }
                 }
                 return(dataCell);
             }
             throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidParameterRange, column, 0, this.m_columnsCount);
         }
         throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidParameterRange, row, 0, this.m_rowsCount);
     }
 }