Exemplo n.º 1
0
        internal bool CustomizeCells(Node node)
        {
            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[node, i];
                    CustomizeCellEventArgs e = new CustomizeCellEventArgs(cell, data, node);
                    this.OnCustomizeCell(e);
                    NodeSpecificCellProperties nodeSpecificProperties = cell.GetNodeSpecificProperties(node);
                    bool flag2 = nodeSpecificProperties.Visible.HasValue ? nodeSpecificProperties.Visible.Value : cell.Visible;
                    nodeSpecificProperties.Visible          = new bool?(e.Cell.Visible);
                    nodeSpecificProperties.CachedAutoHeight = e.Cell.GetAutoHeight(e.Node, i, nodeSpecificProperties);
                    nodeSpecificProperties.Cea = e;
                    if (e.Cell.Visible != flag2)
                    {
                        flag = true;
                    }
                }
            }
            return(flag);
        }
Exemplo n.º 2
0
 protected virtual void OnCustomizeCell(CustomizeCellEventArgs e)
 {
     if (this.Parent != null)
     {
         this.Parent.OnCustomizeCell(e);
     }
 }
Exemplo n.º 3
0
 protected virtual void OnCustomizeCell(CustomizeCellEventArgs e)
 {
     if (this.Parent != null)
     {
         this.Parent.OnCustomizeCell(e);
     }
 }
Exemplo n.º 4
0
 internal bool CustomizeCells(Node node)
 {
     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[node, i];
             CustomizeCellEventArgs e = new CustomizeCellEventArgs(cell, data, node);
             this.OnCustomizeCell(e);
             NodeSpecificCellProperties nodeSpecificProperties = cell.GetNodeSpecificProperties(node);
             bool flag2 = nodeSpecificProperties.Visible.HasValue ? nodeSpecificProperties.Visible.Value : cell.Visible;
             nodeSpecificProperties.Visible = new bool?(e.Cell.Visible);
             nodeSpecificProperties.CachedAutoHeight = e.Cell.GetAutoHeight(e.Node, i, nodeSpecificProperties);
             nodeSpecificProperties.Cea = e;
             if (e.Cell.Visible != flag2)
             {
                 flag = true;
             }
         }
     }
     return flag;
 }