HolidaysHelper.GenerateHolidayAppointments(ISchedulerStorageBase, WorkDaysCollection) Method
Creates all-day appointments for the collection of holidays added to the specified SchedulerControl.WorkDays collection of the scheduler.
public static AppointmentBaseCollection GenerateHolidayAppointments( ISchedulerStorageBase storage, WorkDaysCollection workDays )
Public Shared Function GenerateHolidayAppointments( storage As ISchedulerStorageBase, workDays As WorkDaysCollection ) As AppointmentBaseCollection
A ISchedulerStorageBase object.
A WorkDaysCollection object containing information about holidays for which appointments should be generated.
An AppointmentBaseCollection collection of generated appointments.
The GenerateHolidayAppointments method creates a collection of all-day appointments of the AppointmentType.Normal type scheduled for holidays contained in the SchedulerControl.WorkDays collection. Each appointment has a subject that is equal to KnownDateDay.DisplayName of the corresponding holiday.
Add appointments to SchedulerStorage to persist and display them in the scheduler.