|
//Event triggering
this.scheduleControl1.AdjustingAppointmentWithMouse += ScheduleControl1_AdjustingAppointmentWithMouse;
//Event customization
private void ScheduleControl1_AdjustingAppointmentWithMouse(object sender,AdjustingAppointmentMouseWithEventArgs e)
{
//your code for customization.
} |
|
//Event triggering
this.scheduleControl1.ItemChanging += ScheduleControl1_ItemChanging;
//Event customization
private void ScheduleControl1_ItemChanging(object sender, ScheduleAppointmentCancelEventArgs e)
{
if(e.Action == ItemAction.TimeDrag || e.Action == ItemAction.ItemDrag)
{
//To retrieve start and end time of the appointment
DateTime startDate = e.ProposedItem.StartTime;
DateTime endTime = e.ProposedItem.EndTime;
}
} |