//For creating entries
Dim item As IScheduleAppointment = scheduleProvider.NewScheduleAppointment()
item.StartTime = DateTime.Now
item.EndTime = DateTime.Now.AddHours(10)
item.Subject = "Test appointment"
<Include the code to add the appointment in master list> |
// To add or remove the appointments in MasterList
scheduleProvider.MasterList.Add(item)
scheduleProvider.MasterList.Remove (item)
Me.scheduleControl1.DataSource = scheduleProvider
Me.scheduleControl1.Refresh() |