[]
        
(Showing Draft Content)

C1.Win.Schedule.C1Schedule.BeforeAppointmentCreate

BeforeAppointmentCreate Event

Occurs immediately before the new C1.Schedule.Appointment object is created.

Namespace: C1.Win.Schedule
Assembly: C1.Win.Schedule.8.dll
Syntax
public event CancelAppointmentEventHandler BeforeAppointmentCreate
Returns
Type Description
CancelAppointmentEventHandler Occurs immediately before the new object is created.
Remarks

CancelAppointmentEventArgs for this event is initialized according to the currently selected view and date. For example:

  • If there are some selected slots in the DayView, then C1.Schedule.Appointment.Start and C1.Schedule.Appointment.End properties will be initialized accordingly.
  • If there is a selected day in a WeekView or in a MonthView, the C1.Schedule.Appointment.AllDayEvent property will be set to true.

Use this event to prevent the appointment creation or to fill-in some additional appointment properties.