Skip to main content
Version: 4.2

SchedulerAppointmentChangingEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Proposes an appointment creation, move or resize before the server commits it.

public class SchedulerAppointmentChangingEventArgs : CancelEventArgs

Derives from or implements CancelEventArgs.

Use Appointment, OccurrenceStart, Start to access the event data.

Example:

scheduler.AppointmentCreating += (s, e) => e.Cancel = e.Start < DateTime.Today;

Constructors​

Instance member SchedulerAppointmentChangingEventArgs(appointment, occurrenceStart, start, end, resourceId)​

Initializes event data.

NameTypeDescription
appointmentSchedulerAppointmentThe appointment passed to the operation.
occurrenceStartDateTimeThe occurrence start passed to the operation.
startDateTimeThe start passed to the operation.
endDateTimeThe end passed to the operation.
resourceIdStringThe resource id passed to the operation.

Properties​

Instance member Appointment​

SchedulerAppointment: The source appointment, or the new appointment for a creation. Set its Text in a creation handler.

Instance member End​

DateTime: Proposed exclusive end.

Instance member OccurrenceStart​

DateTime: The original occurrence start; equal to Start for a new appointment.

Instance member ResourceId​

String: Proposed resource identity.

Instance member Start​

DateTime: Proposed inclusive start.