-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMyAppointmentRecurrenceForm.cs
More file actions
29 lines (26 loc) · 1.09 KB
/
MyAppointmentRecurrenceForm.cs
File metadata and controls
29 lines (26 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using DevExpress.XtraScheduler;
using DevExpress.XtraScheduler.UI;
namespace CustomRecurrenceFormDescendantSample
{
public class MyAppointmentRecurrenceForm : AppointmentRecurrenceForm
{
public MyAppointmentRecurrenceForm(Appointment pattern,
FirstDayOfWeek firstDayOfWeek, AppointmentFormControllerBase controller,
RecurrenceType type) : base(pattern, firstDayOfWeek, controller)
{
base.dailyRecurrenceControl1.Enabled = false;
base.weeklyRecurrenceControl1.Enabled = false;
base.monthlyRecurrenceControl1.Enabled = false;
base.yearlyRecurrenceControl1.Enabled = false;
switch (type) {
case RecurrenceType.Daily:
base.dailyRecurrenceControl1.Enabled = true;
break;
// Code for other RecurrenceType cases if required.
}
base.grpRecurrencePattern.Text =
"You can edit only daily recurring appointments";
base.Text = "Appointment Recurrence: Modified Form";
}
}
}