예제 #1
0
 protected virtual void OnCustomizeCell(CustomizeCellEventArgs e)
 {
     if (this.Parent != null)
     {
         this.Parent.OnCustomizeCell(e);
     }
 }
예제 #2
0
        internal bool CustomizeCells(Resco.Controls.AdvancedComboBox.ListItem item)
        {
            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[item, i];
                    CustomizeCellEventArgs e = new CustomizeCellEventArgs(cell, data, item);
                    this.OnCustomizeCell(e);
                    ItemSpecificCellProperties itemSpecificProperties = cell.GetItemSpecificProperties(item);
                    bool flag2 = itemSpecificProperties.Visible.HasValue ? itemSpecificProperties.Visible.Value : cell.Visible;
                    itemSpecificProperties.Visible          = new bool?(e.Cell.Visible);
                    itemSpecificProperties.CachedAutoHeight = e.Cell.GetAutoHeight(e.DataItem, i, itemSpecificProperties);
                    itemSpecificProperties.Cea = e;
                    if (e.Cell.Visible != flag2)
                    {
                        flag = true;
                    }
                }
            }
            return(flag);
        }
예제 #3
0
 protected virtual void OnCustomizeCell(CustomizeCellEventArgs e)
 {
     if (this.Parent != null)
     {
         this.Parent.OnCustomizeCell(e);
     }
 }
예제 #4
0
 internal bool CustomizeCells(Resco.Controls.AdvancedComboBox.ListItem item)
 {
     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[item, i];
             CustomizeCellEventArgs e = new CustomizeCellEventArgs(cell, data, item);
             this.OnCustomizeCell(e);
             ItemSpecificCellProperties itemSpecificProperties = cell.GetItemSpecificProperties(item);
             bool flag2 = itemSpecificProperties.Visible.HasValue ? itemSpecificProperties.Visible.Value : cell.Visible;
             itemSpecificProperties.Visible = new bool?(e.Cell.Visible);
             itemSpecificProperties.CachedAutoHeight = e.Cell.GetAutoHeight(e.DataItem, i, itemSpecificProperties);
             itemSpecificProperties.Cea = e;
             if (e.Cell.Visible != flag2)
             {
                 flag = true;
             }
         }
     }
     return flag;
 }
예제 #5
0
 protected internal virtual void OnCustomizeCell(CustomizeCellEventArgs e)
 {
     if (this.CustomizeCell != null)
     {
         this.CustomizeCell(this, e);
     }
 }