New to Telerik UI for WinFormsStart a free 30-day trial

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:

C#
public class SimpleResourceIdMapper : ResourceIdMapper

Inheritance: objectResourceIdMapperSimpleResourceIdMapper

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

Constructors

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

C#
public SimpleResourceIdMapper(Type collectionType)
Parameters:collectionTypeType

The type of the collection elements that this mapper will work with.

Methods

Adds a resource identifier to the underlying list, converting the EventId to the appropriate format for the collection type.

C#
public override void AddResourceId(EventId eventId)
Parameters:eventIdEventId

The EventId to add to the resource list.

Overrides: ResourceIdMapper.AddResourceId(EventId)

Removes all resource identifiers from the underlying list.

C#
public override void ClearResourceIds()

Overrides: ResourceIdMapper.ClearResourceIds()

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

C#
public override void ReadResources(IEvent ev)
Parameters:evIEvent

The IEvent appointment to populate with resource identifiers.

Overrides: ResourceIdMapper.ReadResources(IEvent)

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

C#
public override void SetResourceList(object resourceList)
Parameters:resourceListobject

The resource list to be managed by this mapper.

Overrides: ResourceIdMapper.SetResourceList(object)