Class
SimpleResourceIdMapper

Provides a simple resource identifier mapper that works with basic collections containing resource ID values directly.

Definition

Namespace:Telerik.WinControls.UI.Scheduler

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

cs-api-definition
public class SimpleResourceIdMapper : ResourceIdMapper

Inheritance: objectResourceIdMapperSimpleResourceIdMapper

Inherited Members ResourceIdMapper.EventIdTypeResourceIdMapper.GetResourceId(EventId, Type)ResourceIdMapper.GetEventId(object)

Constructors

SimpleResourceIdMapper(Type)

Initializes a new instance of the SimpleResourceIdMapper class with the specified collection type.

Declaration

cs-api-definition
public SimpleResourceIdMapper(Type collectionType)

Parameters

collectionType

Type

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

cs-api-definition
public override void AddResourceId(EventId eventId)

Parameters

eventId

EventId

The EventId to add to the resource list.

Overrides ResourceIdMapper.AddResourceId(EventId)

ClearResourceIds()

Removes all resource identifiers from the underlying list.

Declaration

cs-api-definition
public override void ClearResourceIds()

Overrides ResourceIdMapper.ClearResourceIds()

ReadResources(IEvent)

Reads all resource identifiers from the underlying list and populates the appointment's resource ID collection.

Declaration

cs-api-definition
public override void ReadResources(IEvent ev)

Parameters

ev

IEvent

The IEvent appointment to populate with resource identifiers.

Overrides ResourceIdMapper.ReadResources(IEvent)

SetResourceList(object)

Sets the resource list that this mapper will operate on, casting it to an IList interface.

Declaration

cs-api-definition
public override void SetResourceList(object resourceList)

Parameters

resourceList

object

The resource list to be managed by this mapper.

Overrides ResourceIdMapper.SetResourceList(object)