![]() Gravitybox Schedule.NET
1998-2005 Gravitybox Software LLC
Page 39 of 90
Chapter 4
Event Notifications
Overview
In response to the numerous actions that can occur on a schedule, there are events that
are raised to inform the container of these actions. When an appointment is added,
removed, etc, an event is raised in which you can add custom code to handle the
situation. You may wish to commit data to a database or display information to the user.
In any case, these events provide a means to add custom functionality.
AfterAppointmentAdd
The event is raised after an appointment has been added to the AppointmentCollection.
This can happen in code by calling the collections Add method. It is also raised when
the user adds an appointment by pressing the <ENTER> key or double clicking on the
schedule background.
AfterAppointmentCopy
This event is raised after the user has made a copy of an appointment by holding the
<CTRL> key and dragging an appointment. This action causes a clone of the
appointment to be made and added to the AppointmentCollection after which this event
is raised.
AfterAppointmentMove
This event is raised after the user has moved an appointment by dragging it. It is not
raised when the start time, length, or any other property of an appointment is changed
in code. It is only raised by user interaction.
AfterAppointmentRemove
This event is raised after an appointment has been removed from the
AppointmentCollection. The user can perform this by selecting an appointment and then
pressing the <DELETE> key. It is also raised when the Remove or RemoveAt
method of the AppointmentCollection is called to remove an appointment.
AfterAppointmentResize
This event is raised after the user has successfully resized an appointment. Changing
any of an appointments properties in code does not raise this event. Dragging either
edge of an appointment to change the start time or length triggers this event.
AfterInPlaceEdit
This event is raised after the user has edited the subject of an appointment in-place. An
in-place edit occurs when the user selects an appointment and then clicks again on the
appointment to display an edit textbox.
|