windowsforms-devexpress-dot-xtrascheduler-dot-appointmentformeventargs.md
Gets the appointment for which the dialog will be shown.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.dll
NuGet Package : DevExpress.Win.Scheduler
public Appointment Appointment { get; }
Public ReadOnly Property Appointment As Appointment
| Type | Description |
|---|---|
| Appointment |
An Appointment object that is the appointment currently being processed.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Appointment property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-scheduler-localizer-translate-ui/CS/SchedulerLocalizerExample/Form1.cs#L21
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de");
SchedulerStringIdExample.OutlookAppointmentForm form = new SchedulerStringIdExample.OutlookAppointmentForm(scheduler, e.Appointment, e.OpenRecurrenceForm);
try {
private void schedulerControl1_EditAppointmentFormShowing(object sender, AppointmentFormEventArgs e) {
MyAppointmentForm form = new MyAppointmentForm(sender as SchedulerControl, e.Appointment, e.OpenRecurrenceForm);
try {
winforms-scheduler-custom-appointment-edit-form/CS/SchedulerDbExample/Form1.cs#L37
DevExpress.XtraScheduler.SchedulerControl scheduler = ((DevExpress.XtraScheduler.SchedulerControl)(sender));
SchedulerDbExample.CustomAppointmentForm form = new SchedulerDbExample.CustomAppointmentForm(scheduler, e.Appointment, e.OpenRecurrenceForm);
try {
winforms-scheduler-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Form1.cs#L74
SchedulerControl scheduler = sender as SchedulerControl;
Appointment apt = e.Appointment;
bool openRecurrenceForm = apt.IsRecurring && scheduler.DataStorage.Appointments.IsNewAppointment(apt);
winforms-scheduler-print-appointments-using-reports/CS/PrintingViaReports/Form1.cs#L199
{
Appointment apt = e.Appointment;
// Required to open the recurrence form via context menu.
winforms-scheduler-localizer-translate-ui/VB/SchedulerLocalizationExample_VB/Form1.vb#L15
Dim form As SchedulerLocalizationExample_VB.OutlookAppointmentForm = New SchedulerLocalizationExample_VB.OutlookAppointmentForm(scheduler, e.Appointment, e.OpenRecurrenceForm)
Try
Private Sub schedulerControl1_EditAppointmentFormShowing(ByVal sender As Object, ByVal e As AppointmentFormEventArgs) Handles schedulerControl1.EditAppointmentFormShowing
Dim form As New MyAppointmentForm(TryCast(sender, SchedulerControl), e.Appointment, e.OpenRecurrenceForm)
Try
winforms-scheduler-custom-appointment-edit-form/VB/SchedulerDbExample/Form1.vb#L39
Dim scheduler As DevExpress.XtraScheduler.SchedulerControl = (DirectCast(sender, DevExpress.XtraScheduler.SchedulerControl))
Dim form As New SchedulerDbExample.CustomAppointmentForm(scheduler, e.Appointment, e.OpenRecurrenceForm)
Try
winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Form1.vb#L76
Dim scheduler As SchedulerControl = TryCast(sender, SchedulerControl)
Dim apt As Appointment = e.Appointment
Dim openRecurrenceForm As Boolean = apt.IsRecurring AndAlso scheduler.DataStorage.Appointments.IsNewAppointment(apt)
winforms-scheduler-print-appointments-using-reports/VB/PrintingViaReports/Form1.vb#L179
Private Sub schedulerControl1_EditAppointmentFormShowing(ByVal sender As Object, ByVal e As AppointmentFormEventArgs) Handles schedulerControl1.EditAppointmentFormShowing
Dim apt As Appointment = e.Appointment
' Required to open the recurrence form via context menu.
See Also
AppointmentFormEventArgs Class