internal void UpdateDataCellValues(Microsoft.ReportingServices.ReportRendering.DataCell dataCell)
 {
     if (!m_isChartValues)
     {
         int num = m_cachedDataValues.Length;
         for (int i = 0; i < num; i++)
         {
             m_cachedDataValues[i].UpdateDataCellValue((dataCell == null || dataCell.DataValues == null) ? null : dataCell.DataValues[i]);
         }
     }
 }
        internal DataValueCollection(RenderingContext renderingContext, Microsoft.ReportingServices.ReportRendering.DataCell dataCell)
        {
            m_isChartValues = false;
            if (dataCell.DataValues == null)
            {
                m_cachedDataValues = new DataValue[0];
                return;
            }
            int count = dataCell.DataValues.Count;

            m_cachedDataValues = new DataValue[count];
            for (int i = 0; i < count; i++)
            {
                m_cachedDataValues[i] = new DataValue(renderingContext, dataCell.DataValues[i]);
            }
        }
Ejemplo n.º 3
0
 public DataCell this[int row, int column]
 {
     get
     {
         if (row < 0 || row >= m_rowsCount)
         {
             throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidParameterRange, row, 0, m_rowsCount);
         }
         if (column < 0 || column >= m_columnsCount)
         {
             throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidParameterRange, column, 0, m_columnsCount);
         }
         DataCell dataCell = null;
         if (row == 0 && column == 0)
         {
             dataCell = m_firstCell;
         }
         else if (row == 0)
         {
             if (m_firstRowCells != null)
             {
                 dataCell = m_firstRowCells[column - 1];
             }
         }
         else if (column == 0)
         {
             if (m_firstColumnCells != null)
             {
                 dataCell = m_firstColumnCells[row - 1];
             }
         }
         else if (m_cells != null && m_cells[row - 1] != null)
         {
             dataCell = m_cells[row - 1][column - 1];
         }
         if (dataCell == null)
         {
             dataCell = new DataCell(m_owner, row, column);
             if (m_owner.UseCache)
             {
                 if (row == 0 && column == 0)
                 {
                     m_firstCell = dataCell;
                 }
                 else if (row == 0)
                 {
                     if (m_firstRowCells == null)
                     {
                         m_firstRowCells = new DataRowCells(m_columnsCount - 1);
                     }
                     m_firstRowCells[column - 1] = dataCell;
                 }
                 else if (column == 0)
                 {
                     if (m_firstColumnCells == null)
                     {
                         m_firstColumnCells = new DataRowCells(m_rowsCount - 1);
                     }
                     m_firstColumnCells[row - 1] = dataCell;
                 }
                 else
                 {
                     if (m_cells == null)
                     {
                         m_cells = new DataRowCells[m_rowsCount - 1];
                     }
                     if (m_cells[row - 1] == null)
                     {
                         m_cells[row - 1] = new DataRowCells(m_columnsCount - 1);
                     }
                     m_cells[row - 1][column - 1] = dataCell;
                 }
             }
         }
         return(dataCell);
     }
 }
Ejemplo n.º 4
0
 internal override void SetNewContext()
 {
     base.SetNewContext();
     m_renderDataCell = null;
 }