SchedulerControl.ShowEditAppointmentForm(Appointment, Boolean, Boolean) Method

Invokes the Edit Appointment dialog for the specified appointment. Also, optionally invokes the Recurrence dialog and disables all editors on this form, if required.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.2.dll

Declaration

public virtual DialogResult ShowEditAppointmentForm(
    Appointment apt,
    bool openRecurrenceForm,
    bool readOnly
)
Public Overridable Function ShowEditAppointmentForm(
    apt As Appointment,
    openRecurrenceForm As Boolean,
    readOnly As Boolean
) As DialogResult

Parameters

Name Type Description
apt Appointment

An Appointment object which is the appointment to be edited in the dialog.

openRecurrenceForm Boolean

True to open the Recurrence dialog; otherwise, false.

readOnly Boolean

True to open this form to display properties of a read-only appointment (in this situation all form editors are disabled); otherwise, false.

Returns

Type Description
DialogResult

A DialogResult enumeration value that is the return value of the dialog.

Remarks

This dialog allows end-users to change the properties of any appointment. The standard Appointment dialog along with the standard Recurrence dialog are shown in the image below.

EditAppointment Dialog2

TIP

Use the SchedulerControl.EditAppointmentFormShowing event to handle the showing of this dialog, and to invoke your own custom dialog instead of the standard one.

See Also