Beispiel #1
0
 /// <summary>
 /// Allows you to map a cell values type given by a column item accessor to a Cell type. We use this for registering
 /// Image and Checkbox handling Cells.
 /// </summary>
 /// <param name="valueType">A cell values type given by a column item accessor</param>
 /// <param name="creator">Delegate that gets called to created a mapped CellSection</param>
 public void RegisterCellSection(Type valueType, CellSectionCreator creator)
 {
     if (_cellSectionFactoryMap.ContainsKey(valueType))
     {
         _cellSectionFactoryMap.Remove(valueType);
     }
     _cellSectionFactoryMap.Add(valueType, creator);
 }
Beispiel #2
0
 /// <summary>
 /// Allows you to map a cell values type given by a column item accessor to a Cell type. We use this for registering
 /// Image and Checkbox handling Cells.
 /// </summary>
 /// <param name="valueType">A cell values type given by a column item accessor</param>
 /// <param name="creator">Delegate that gets called to created a mapped CellSection</param>
 public void RegisterCellSection( Type valueType,  CellSectionCreator creator )
 {
     if( _cellSectionFactoryMap.ContainsKey( valueType ) )
     {
         _cellSectionFactoryMap.Remove( valueType );
     }
     _cellSectionFactoryMap.Add( valueType, creator );
 }