The C1ScheduleStorage component handles all of the data operations for the C1Schedule control. Users do not have to create the C1ScheduleStorage component from the code, as it is automatically created by the C1Schedule control.
The C1ScheduleStorage component contains specific data storages for appointments, resources, contacts, labels, and statuses, which work on the data layer to provide data to the scheduling application. The C1ScheduleStorage component contains some separate data storages as listed in the following table:
Data Storage | Description |
---|---|
AppointmentStorage | Storage for appointment data. |
CategoryStorage | Storage for category data. |
ContactStorage | Storage for contact data. |
LabelStorage | Storage for label data. |
StatusStorage | Storage for status data. |
ResourceStorage | Storage for resource data. |
When providing data to these storages, it is necessary to specify mappings between data fields in the datasource and their interpretation in the storage. For more information on mapping to a data source, see Data Mappings.
All storages are inherited from the BaseStorage class, which provides all the basic functionality required for data binding. To bind a storage to a specific data table (or another data object) it is necessary to set its DataSource and DataMember properties, and then set the mappings for the properties to corresponding data fields in the bound DataSource. For example, if the bound data source contains a field called EmployeeName, you should set the MappingName property to the name of this field.
The BaseStorage component has almost the same functionality as the System.Windows.Forms.BindingSource component, but does not depend on System.Windows.Forms namespace.
Data Importing and Exporting
The C1ScheduleStorage component also handles data importing and exporting to other scheduling applications and formats. Instead of binding a component to data, you can use the Export and Import methods for saving and loading data to or from binary, iCal, and XML.