示例#1
0
        internal bool CustomizeCells(Row row)
        {
            bool flag = false;

            if (!this.HasCustomizedCells || (this.Parent == null))
            {
                return(false);
            }
            int count = this.m_CellTemplates.Count;

            for (int i = 0; i < count; i++)
            {
                Cell cell = this.m_CellTemplates[i];
                if (cell.CustomizeCell)
                {
                    object data = cell[row, i];
                    CustomizeCellEventArgs e = new CustomizeCellEventArgs(cell, data, row);
                    this.OnCustomizeCell(e);
                    RowSpecificCellProperties rowSpecificProperties = cell.GetRowSpecificProperties(row);
                    bool flag2 = rowSpecificProperties.Visible.Value;
                    rowSpecificProperties.Selectable       = new bool?(e.Cell.Selectable);
                    rowSpecificProperties.Visible          = new bool?(e.Cell.Visible);
                    rowSpecificProperties.CachedAutoHeight = e.Cell.GetAutoHeight(e.DataRow, i, rowSpecificProperties);
                    rowSpecificProperties.Cea = e;
                    if (e.Cell.Visible != flag2)
                    {
                        flag = true;
                    }
                }
            }
            return(flag);
        }
示例#2
0
 protected virtual void OnCustomizeCell(CustomizeCellEventArgs e)
 {
     if (this.Parent != null)
     {
         this.Parent.OnCustomizeCell(e);
     }
 }
示例#3
0
 internal bool CustomizeCells(Row row)
 {
     bool flag = false;
     if (!this.HasCustomizedCells || (this.Parent == null))
     {
         return false;
     }
     int count = this.m_CellTemplates.Count;
     for (int i = 0; i < count; i++)
     {
         Cell cell = this.m_CellTemplates[i];
         if (cell.CustomizeCell)
         {
             object data = cell[row, i];
             CustomizeCellEventArgs e = new CustomizeCellEventArgs(cell, data, row);
             this.OnCustomizeCell(e);
             RowSpecificCellProperties rowSpecificProperties = cell.GetRowSpecificProperties(row);
             bool flag2 = rowSpecificProperties.Visible.Value;
             rowSpecificProperties.Selectable = new bool?(e.Cell.Selectable);
             rowSpecificProperties.Visible = new bool?(e.Cell.Visible);
             rowSpecificProperties.CachedAutoHeight = e.Cell.GetAutoHeight(e.DataRow, i, rowSpecificProperties);
             rowSpecificProperties.Cea = e;
             if (e.Cell.Visible != flag2)
             {
                 flag = true;
             }
         }
     }
     return flag;
 }
示例#4
0
 protected virtual void OnCustomizeCell(CustomizeCellEventArgs e)
 {
     if (this.Parent != null)
     {
         this.Parent.OnCustomizeCell(e);
     }
 }
示例#5
0
 protected internal virtual void OnCustomizeCell(CustomizeCellEventArgs e)
 {
     if (this.CustomizeCell != null)
     {
         this.CustomizeCell(this, e);
     }
 }