Class SimpleResourceIdMapper
Provides a simple resource identifier mapper that works with basic collections containing resource ID values directly.
Inherited Members
Namespace: Telerik.WinControls.UI.Scheduler
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class SimpleResourceIdMapper : ResourceIdMapper
Constructors
SimpleResourceIdMapper(Type)
Initializes a new instance of the SimpleResourceIdMapper class with the specified collection type.
Declaration
public SimpleResourceIdMapper(Type collectionType)
Parameters
System.Type
collectionType
The type of the collection elements that this mapper will work with. |
Methods
AddResourceId(EventId)
Adds a resource identifier to the underlying list, converting the EventId to the appropriate format for the collection type.
Declaration
public override void AddResourceId(EventId eventId)
Parameters
EventId
eventId
The EventId to add to the resource list. |
Overrides
ClearResourceIds()
Removes all resource identifiers from the underlying list.
Declaration
public override void ClearResourceIds()
Overrides
ReadResources(IEvent)
Reads all resource identifiers from the underlying list and populates the appointment's resource ID collection.
Declaration
public override void ReadResources(IEvent ev)
Parameters
IEvent
ev
The IEvent appointment to populate with resource identifiers. |
Overrides
SetResourceList(Object)
Sets the resource list that this mapper will operate on, casting it to an System.Collections.IList interface.
Declaration
public override void SetResourceList(object resourceList)
Parameters
System.Object
resourceList
The resource list to be managed by this mapper. |