コード例 #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
ファイル: RowTemplate.cs プロジェクト: north0808/haina
 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
ファイル: RowTemplate.cs プロジェクト: north0808/haina
 protected virtual void OnCustomizeCell(CustomizeCellEventArgs e)
 {
     if (this.Parent != null)
     {
         this.Parent.OnCustomizeCell(e);
     }
 }
コード例 #5
0
ファイル: AdvancedList.cs プロジェクト: north0808/haina
 protected internal virtual void OnCustomizeCell(CustomizeCellEventArgs e)
 {
     if (this.CustomizeCell != null)
     {
         this.CustomizeCell(this, e);
     }
 }