Back to Devexpress

AppointmentFormControllerBase.EditedAppointmentCopy Property

corelibraries-devexpress-dot-xtrascheduler-dot-ui-dot-appointmentformcontrollerbase.md

latest6.0 KB
Original Source

AppointmentFormControllerBase.EditedAppointmentCopy Property

Gets the copy of the appointment currently being edited in the form.

Namespace : DevExpress.XtraScheduler.UI

Assembly : DevExpress.XtraScheduler.v25.2.Core.Desktop.dll

NuGet Package : DevExpress.Scheduler.CoreDesktop

Declaration

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

Property Value

TypeDescription
Appointment

An Appointment object.

|

Remarks

When an appointment is being edited in the Edit Appointment form using the AppointmentFormControllerBase object, all changes are applied to its copy. This copy can be accessed using the EditedAppointmentCopy property.

To apply all changes made to the copy of the appointment to the source appointment, call the AppointmentFormController.ApplyChanges method.

The following code snippets (auto-collected from DevExpress Examples) contain references to the EditedAppointmentCopy 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/OutlookAppointmentForm.cs#L247

csharp
SubscribeControlsEvents();
    LoadFormData(Controller.EditedAppointmentCopy);
}

winforms-scheduler-custom-appointment-edit-form/CS/SchedulerDbExample/CustomAppointmentForm.cs#L203

csharp
SubscribeControlsEvents();
LoadFormData(Controller.EditedAppointmentCopy);
RecalculateLayoutOfControlsAffectedByProgressPanel();

winforms-scheduler-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Forms/MyAppointmentEditForm.cs#L65

csharp
// Prepare to edit appointment's recurrence.
Appointment editedAptCopy = controller.EditedAppointmentCopy;
Appointment editedPattern = controller.EditedPattern;

winforms-scheduler-print-appointments-using-reports/CS/PrintingViaReports/MyAppointmentEditForm.cs#L94

csharp
// Prepare to edit the appointment's recurrence.
Appointment editedAptCopy = controller.EditedAppointmentCopy;
Appointment editedPattern = controller.EditedPattern;

winforms-scheduler-localizer-translate-ui/VB/SchedulerLocalizationExample_VB/OutlookAppointmentForm.vb#L280

vb
SubscribeControlsEvents()
    LoadFormData(Controller.EditedAppointmentCopy)
End Sub

winforms-scheduler-custom-appointment-edit-form/VB/SchedulerDbExample/CustomAppointmentForm.vb#L256

vb
SubscribeControlsEvents()
LoadFormData(Controller.EditedAppointmentCopy)
RecalculateLayoutOfControlsAffectedByProgressPanel()

winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Forms/MyAppointmentEditForm.vb#L75

vb
' Prepare to edit appointment's recurrence.
Dim editedAptCopy As Appointment = controller.EditedAppointmentCopy
Dim editedPattern As Appointment = controller.EditedPattern

winforms-scheduler-print-appointments-using-reports/VB/PrintingViaReports/MyAppointmentEditForm.vb#L102

vb
' Prepare to edit the appointment's recurrence.
Dim editedAptCopy As Appointment = controller.EditedAppointmentCopy
Dim editedPattern As Appointment = controller.EditedPattern

See Also

AppointmentFormControllerBase Class

AppointmentFormControllerBase Members

DevExpress.XtraScheduler.UI Namespace