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

Provides an abstract base class for mapping resource identifiers to appointments in the scheduler, handling the conversion between different resource ID formats and collection types.

Definition

Namespace:Telerik.WinControls.UI.Scheduler

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public abstract class ResourceIdMapper

Inheritance: objectResourceIdMapper

Derived Classes: ComplexResourceIdMapperBaseSimpleResourceIdMapper

Constructors

C#
protected ResourceIdMapper()

Fields

C#
protected static readonly Type EventIdType

Methods

Adds a resource identifier to the underlying resource collection in the appropriate format.

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

The EventId to add to the resource collection.

Removes all resource identifiers from the underlying resource collection.

C#
public abstract void ClearResourceIds()

Converts an object to an EventId instance, handling both direct EventId objects and other value types.

C#
protected EventId GetEventId(object o)
Parameters:oobject

The object to convert to an EventId.

Returns:

EventId

An EventId instance representing the provided object.

Gets the appropriate resource identifier value based on the target property type, converting EventId to the required format.

C#
protected static object GetResourceId(EventId eventId, Type propertyType)
Parameters:eventIdEventId

The EventId instance to convert.

propertyTypeType

The target property type for the resource identifier.

Returns:

object

The resource identifier in the appropriate format for the target property type.

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

C#
public abstract void ReadResources(IEvent appointment)
Parameters:appointmentIEvent

The IEvent appointment to populate with resource identifiers.

Sets the resource collection that this mapper will operate on for resource identifier management.

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

The resource collection to be managed by this mapper.