protected virtual void OnCustomizeCell(CustomizeCellEventArgs e) { if (this.Parent != null) { this.Parent.OnCustomizeCell(e); } }
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); }
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; }
protected internal virtual void OnCustomizeCell(CustomizeCellEventArgs e) { if (this.CustomizeCell != null) { this.CustomizeCell(this, e); } }