Hi
Sergiy ,
Thank for your interest in Syncfusion products.
To Customize the Appointment from of Schedule form.
The IScheduleAppointmentList is used to find the new item in ScheduleControl as
shown below.
Code
Snippet:
void
scheduleControl_ShowingAppointmentForm(object sender,
Syncfusion.Windows.Forms.Schedule.ShowingAppointFormEventArgs e)
{
AppointMentForm fr = new
AppointMentForm();
IScheduleAppointment sch =
e.Item.Clone() as IScheduleAppointment;
e.Cancel = true;
e.Handled = false;
fr.schedule =
this.scheduleControl;
IScheduleAppointmentList list =
this.dataprovider.GetScheduleForDay(e.Item.StartTime);
if (list.Contains(e.Item))
fr.newappointment = false;
else
fr.newappointment = true;
if (fr.newappointment)
fr.SetDataProvider(dataprovider,
sch);
else
{
fr.SetDataProvider(dataprovider,
e.Item);
IRecurringScheduleAppointment
recurItem = e.Item as IRecurringScheduleAppointment;
fr.ShowRecurDialog.Text =
recurItem.RecurrenceRule.Length > 0
?
(RecurrenceSupport.IsSpanItem(recurItem) ? "Delete Span" :
"EditRecurring")
: "MakeRecurring";
}
fr.ShowDialog();
}
Please let us know if you have
any concerns.
Thanks & Regards,
AL.Solai.