'宣言 Public Delegate Sub AfterAppointmentResizedEventHandler( _ ByVal sender As Object, _ ByVal e As AppointmentEventArgs _ )
public delegate void AfterAppointmentResizedEventHandler( object sender, AppointmentEventArgs e )
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Private Sub UltraDayView1_AfterAppointmentResized(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinSchedule.AppointmentEventArgs) Handles UltraDayView1.AfterAppointmentResized Debug.WriteLine("Appointment '" + e.Appointment.Subject + "' has been resized. Its new Start time and End time are: " + e.Appointment.StartDateTime.ToLongDateString() + " - " + e.Appointment.EndDateTime.ToLongDateString()) End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; private void ultraDayView1_AfterAppointmentResized(object sender, Infragistics.Win.UltraWinSchedule.AppointmentEventArgs e) { Debug.WriteLine("Appointment '" + e.Appointment.Subject + "' has been resized. Its new Start time and End time are: " + e.Appointment.StartDateTime.ToLongDateString() + " - " + e.Appointment.EndDateTime.ToLongDateString()); }