-
Notifications
You must be signed in to change notification settings - Fork 3
/
Form1.cs
31 lines (26 loc) · 999 Bytes
/
Form1.cs
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
30
31
using System;
using System.Windows.Forms;
namespace CustomRecurrenceFormDescendantSample
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.schedulerControl1.EditAppointmentFormShowing += schedulerControl1_EditAppointmentFormShowing;
this.Shown += Form1_Shown;
}
void schedulerControl1_EditAppointmentFormShowing(object sender, DevExpress.XtraScheduler.AppointmentFormEventArgs e)
{
// Recurrence form allows editing only daily recurring appointments.
MyAppointmentEditForm myForm = new MyAppointmentEditForm(schedulerControl1,
e.Appointment, e.OpenRecurrenceForm, DevExpress.XtraScheduler.RecurrenceType.Daily);
myForm.ShowDialog();
e.Handled = true;
}
void Form1_Shown(object sender, EventArgs e)
{
this.schedulerControl1.CreateAppointment(false, true);
}
}
}