Back to Devexpress

AppointmentFormEventArgs.Appointment Property

windowsforms-devexpress-dot-xtrascheduler-dot-appointmentformeventargs.md

latest6.7 KB
Original Source

AppointmentFormEventArgs.Appointment Property

Gets the appointment for which the dialog will be shown.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public Appointment Appointment { get; }
vb
Public ReadOnly Property Appointment As Appointment

Property Value

TypeDescription
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

csharp
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de");
SchedulerStringIdExample.OutlookAppointmentForm form = new SchedulerStringIdExample.OutlookAppointmentForm(scheduler, e.Appointment, e.OpenRecurrenceForm);
try {

winforms-scheduler-create-appointment-edit-form-with-custom-fields/CS/SimpleCustomFields/Form1.cs#L54

csharp
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

csharp
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

csharp
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

csharp
{
    Appointment apt = e.Appointment;
    // Required to open the recurrence form via context menu.

winforms-scheduler-localizer-translate-ui/VB/SchedulerLocalizationExample_VB/Form1.vb#L15

vb
Dim form As SchedulerLocalizationExample_VB.OutlookAppointmentForm = New SchedulerLocalizationExample_VB.OutlookAppointmentForm(scheduler, e.Appointment, e.OpenRecurrenceForm)
Try

winforms-scheduler-create-appointment-edit-form-with-custom-fields/VB/SimpleCustomFields/Form1.vb#L54

vb
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

vb
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

vb
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

vb
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

AppointmentFormEventArgs Members

DevExpress.XtraScheduler Namespace