Skip to main content

ResourceDataStorage Members

A storage that holds appointment resources.

Constructors

Name Description
ResourceDataStorage(SchedulerDataStorage) Initializes a new instance of the ResourceDataStorage class with the specified settings.

Properties

Name Description
AutoReload Gets or sets whether resources are automatically fetched from the data source when it is modified.
ColorSaving Gets or sets a type of format to store the color information.
Count Returns the number of resources stored in this ResourceDataStorage.
CustomFieldMappings Provides access to the collection of objects, representing mappings of the resources’ custom properties to appropriate data fields.
DataMember Gets or sets the data source member which supplies data to the storage.
DataSource Gets or sets the object used as the data source to store resources.
Filter Gets or set an expression used as a criteria to filter resources in the storage.
FilterCriteria Gets or sets the criteria to filter resources in the storage.
IsDisposed Gets a value indicating whether a storage has been disposed of.
Item[Int32] Provides indexed access to the individual items in the collection which can be accessed via the storage’s ResourceDataStorage.Items property.
Items Gets the collection of resources within the storage.
Mappings Gets an object that allows the persistent properties of the resources maintained by the current storage to be bound to appropriate fields in the data source.
Storage Returns the storage that owns this ResourceDataStorage.

Methods

Name Description
Add(Resource) Adds the specified Resource object to the collection of resources in the storage.
Add(Object, String, Color) Adds a new resource with the specific ID, caption and color.
Add(Object, String) Adds a new resource with the specific ID and caption.
Add(Object) Adds a new resource with the specific ID.
AddRange(Resource[]) Appends an array of resources to the storage’s collection.
AddRange(IEnumerable<Resource>) Adds a resource collection to this ResourceDataStorage.
Clear() Removes all ResourceDataStorage resources.
Contains(Resource) Determines whether the storage contains the specified resource.
CreateResource(Object, String, Color) Creates a new resource with the specified ID, caption and color.
CreateResource(Object, String) Creates a new resource with the specified ID and caption.
CreateResource(Object) Creates a new resource with the specified ID.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetColumnNames() Returns names of data fields that belong to this ResourceDataStorage‘s data source.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetObjectRow(Resource) Returns the data row object that contains information about the specified resource.
GetResourceById(Object) Gets a resource within the collection by its ID value.
GetType() Gets the Type of the current instance. Inherited from Object.
LoadFromXml(Stream) Loads settings of resources from the specified stream to the resource storage.
LoadFromXml(String) Loads settings of resources from the specified XML file to the resource storage.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ReloadData() Forces the ResourceDataStorage to reload data from its ResourceDataStorage.DataSource.
Remove(Resource) Removes the specified Resource object from the storage.
SaveToXml(Stream) Saves resources from the resource storage to the specified stream.
SaveToXml(String) Saves resources from the resource storage to an XML file.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also