or
private void InitiateBookingDataSource()
{
if (_appointmentBookings == null) _appointmentBookings = new BindingList<
Booking
>();
var dataSource = new SchedulerBindingDataSource();
var mappingInfo = new AppointmentMappingInfo
{
Start = "StartTime",
End = "EndTime",
Summary = "BookingSubject",
Description = "BookingDescription",
BackgroundId = "BackgroundId",
AllDay = "AllDay",
RecurrenceRule = "RecurrenceRule",
Exceptions = "Exceptions",
MasterEventId = "MasterEventId",
Visible = "Visible"
};
mappingInfo.Mappings.Add(new SchedulerMapping("CaseId", "CaseId"));
mappingInfo.Mappings.Add(new SchedulerMapping("PratId", "PratId"));
mappingInfo.Mappings.Add(new SchedulerMapping("InterpretorId", "InterpretorId"));
mappingInfo.Mappings.Add(new SchedulerMapping("BoothId", "BoothId"));
mappingInfo.Mappings.Add(new SchedulerMapping("CaseDesc", "CaseDesc"));
mappingInfo.Mappings.Add(new SchedulerMapping("InterpretorDesc", "InterpretorDesc"));
mappingInfo.Mappings.Add(new SchedulerMapping("BoothDesc", "BoothDesc"));
dataSource.EventProvider.Mapping = mappingInfo;
dataSource.EventProvider.DataSource = _appointmentBookings;
dataSource.EventProvider.AppointmentFactory = rsBookings.AppointmentFactory;
rsBookings.DataSource = dataSource;
}
_appointmentBookings = await GetDataAsync(_cancellation.Token);