ComponentOne Scheduler for WinForms
AppointmentCustomAction Event

C1.Win.C1Schedule.4 Assembly > C1.Win.C1Schedule Namespace > C1Schedule Class : AppointmentCustomAction Event
Occurs immediately before a custom action of an C1.C1Schedule.Appointment object executes.
Public Event AppointmentCustomAction As CancelAppointmentEventHandler
public event CancelAppointmentEventHandler AppointmentCustomAction
Event Data

The event handler receives an argument of type CancelAppointmentEventArgs containing data related to this event. The following CancelAppointmentEventArgs properties provide information specific to this event.

Gets the Appointment object which the event was raised for.  
(Inherited from System.ComponentModel.CancelEventArgs)
To cancel default handling, set CancelAppointmentEventArgs.Cancel property to true.
private void c1Schedule1_AppointmentAdded(object sender, AppointmentEventArgs e)
	// create a new action
	Action action = new Action();
	action.Command = "";
	// set appointment action
	e.Appointment.Action = action;
See Also