Fired after an
Appointment object is edited via the user interface.
The event handler receives an argument of type AfterAppointmentEditEventArgs containing data related to this event. The following AfterAppointmentEditEventArgs properties provide information specific to this event.
Property | Description |
---|
Appointment | Returns the type of activity that is about to be edited |
OldValue | Returns the value of the 'Subject' property before it was edited |
This example informs the end user of the change, displaying the old and new values.
For an overview of how to handle events in Visual Basic or Visual C#, see
Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see
Consuming Events in the
.NET Framework Developer's Guide.
Private Sub UltraMonthViewSingle1_AfterAppointmentEdit(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinSchedule.AfterAppointmentEditEventArgs) Handles ultraMonthViewSingle.AfterAppointmentEdit
'----------------------------------------------------------------------------------------------------
' Description
' AfterAppointmentEdit
'
' Fires after an Appointment's subject is edited via the control's UI.
' If the BeforeAppointmentEdit event is not canceled, the AfterAppointmentEdit event fires.
'
'----------------------------------------------------------------------------------------------------
' Get the old and new values for the Appointment's Subject
' from the event arguments
Dim oldValue As String = e.OldValue
Dim newValue As String = e.Appointment.Subject
' Display the old and new values in a MessageBox
Dim info As String = String.Empty
info += "An Appointment's subject was edited." + vbCrLf
info += "The old value was '" + oldValue + "'." + vbCrLf
info += "The new value is '" + newValue + "'." + vbCrLf
MessageBox.Show(info, "AfterAppointmentEdit", MessageBoxButtons.OK)
End Sub
private void ultraMonthViewSingle1_AfterAppointmentEdit(object sender, Infragistics.Win.UltraWinSchedule.AfterAppointmentEditEventArgs e)
{
//----------------------------------------------------------------------------------------------------
// Description
// AfterAppointmentEdit
//
// Fires after an Appointment's subject is edited via the control's UI.
// If the BeforeAppointmentEdit event is not canceled, the AfterAppointmentEdit event fires.
//
//----------------------------------------------------------------------------------------------------
// Get the old and new values for the Appointment's Subject
// from the event arguments
string oldValue = e.OldValue;
string newValue = e.Appointment.Subject;
// Display the old and new values in a MessageBox
string info = string.Empty;
info += "An Appointment's subject was edited." + "\n";
info += "The old value was '" + oldValue + "'." + "\n";
info += "The new value is '" + newValue + "'." + "\n";
MessageBox.Show( info, "AfterAppointmentEdit", MessageBoxButtons.OK );
}
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2