Class ResourceIdMapper
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.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI.Scheduler
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public abstract class ResourceIdMapper
Constructors
ResourceIdMapper()
Declaration
protected ResourceIdMapper()
Fields
EventIdType
Declaration
protected static readonly Type EventIdType
Field Value
|
System.Type
|
Methods
AddResourceId(EventId)
Adds a resource identifier to the underlying resource collection in the appropriate format.
Declaration
public abstract void AddResourceId(EventId eventId)
Parameters
|
EventId
eventId
The EventId to add to the resource collection. |
ClearResourceIds()
Removes all resource identifiers from the underlying resource collection.
Declaration
public abstract void ClearResourceIds()
GetEventId(Object)
Converts an object to an EventId instance, handling both direct EventId objects and other value types.
Declaration
protected EventId GetEventId(object o)
Parameters
|
System.Object
o
The object to convert to an EventId. |
Returns
|
EventId
An EventId instance representing the provided object. |
GetResourceId(EventId, Type)
Gets the appropriate resource identifier value based on the target property type, converting EventId to the required format.
Declaration
protected static object GetResourceId(EventId eventId, Type propertyType)
Parameters
|
EventId
eventId
The EventId instance to convert. |
|
System.Type
propertyType
The target property type for the resource identifier. |
Returns
|
System.Object
The resource identifier in the appropriate format for the target property type. |
ReadResources(IEvent)
Reads all resource identifiers from the underlying collection and populates the appointment's resource ID collection.
Declaration
public abstract void ReadResources(IEvent appointment)
Parameters
|
IEvent
appointment
The IEvent appointment to populate with resource identifiers. |
SetResourceList(Object)
Sets the resource collection that this mapper will operate on for resource identifier management.
Declaration
public abstract void SetResourceList(object resourceList)
Parameters
|
System.Object
resourceList
The resource collection to be managed by this mapper. |