'宣言 Public Event AfterInvokeAppointmentAction As AppointmentEventHandler
public event AppointmentEventHandler AfterInvokeAppointmentAction
イベント ハンドラが、このイベントに関連するデータを含む、AppointmentEventArgs 型の引数を受け取りました。次の AppointmentEventArgs プロパティには、このイベントの固有の情報が記載されます。
プロパティ | 解説 |
---|---|
Appointment | イベントに関連付けられたAppointmentオブジェクト。このプロパティは読み取り専用です。 |
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Imports System.Diagnostics Private Sub ultraCalendarInfo1_AfterInvokeAppointmentAction(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinSchedule.AppointmentEventArgs) Handles ultraCalendarInfo1.AfterInvokeAppointmentAction '---------------------------------------------------------------------------------------------------- ' 説明 ' AfterInvokeAppointmentAction ' ' Appointment の操作が呼び出された後に発生します ' ' Action プロパティによって、Appointment オブジェクトに AppointmentAction を割り当てることができます ' たとえば、予定の時間に AppointmentAction はアプリケーションを ' 起動することができますこのシナリオでは、そのアプリケーションが起動した後に、 ' AfterInvokeAppointmentAction を発生します ' '---------------------------------------------------------------------------------------------------- Dim info As String = String.Empty info += "A Appointment's action was just invoked:" + vbCrLf info += "The new Appointment starts on: " + e.Appointment.StartDateTime.ToLongDateString() + vbCrLf info += "The new Appointment ends on: " + e.Appointment.EndDateTime.ToLongDateString() + vbCrLf info += "The new Appointment's start time is: " + e.Appointment.StartDateTime.ToLongTimeString() + vbCrLf info += "The new Appointment's end time is: " + e.Appointment.EndDateTime.ToLongTimeString() + vbCrLf info += "The new Appointment's Subject is: " + e.Appointment.Subject + vbCrLf info += "The new Appointment's Location is: " + e.Appointment.Location + vbCrLf info += "The new Appointment's Description is: " + e.Appointment.Description + vbCrLf + vbCrLf info += "The new Appointment Action's command is: " + e.Appointment.Action.Command + vbCrLf info += "The new Appointment Action's command parameters are: " + e.Appointment.Action.Parameters + vbCrLf MessageBox.Show(info, "AfterInvokeAppointmentAction", MessageBoxButtons.OK) End Sub
using System.Diagnostics; using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; private void ultraCalendarInfo1_AfterInvokeAppointmentAction(object sender, Infragistics.Win.UltraWinSchedule.AppointmentEventArgs e) { //---------------------------------------------------------------------------------------------------- // 説明 // AfterInvokeAppointmentAction // // Appointment の操作が呼び出された後に発生します // // Action プロパティによって、Appointment オブジェクトに AppointmentAction を割り当てることができます // たとえば、予定の時間に AppointmentAction はアプリケーションを // 起動することができますこのシナリオでは、そのアプリケーションが起動した後に、 // AfterInvokeAppointmentAction を発生します // //---------------------------------------------------------------------------------------------------- string info = string.Empty; info += "A Appointment's action was just invoked:" + "\n\n"; info += "The new Appointment starts on: " + e.Appointment.StartDateTime.ToLongDateString() + "\n"; info += "The new Appointment ends on: " + e.Appointment.EndDateTime.ToLongDateString() + "\n"; info += "The new Appointment's start time is: " + e.Appointment.StartDateTime.ToLongTimeString() + "\n"; info += "The new Appointment's end time is: " + e.Appointment.EndDateTime.ToLongTimeString() + "\n"; info += "The new Appointment's Subject is: " + e.Appointment.Subject + "\n"; info += "The new Appointment's Location is: " + e.Appointment.Location + "\n"; info += "The new Appointment's Description is: " + e.Appointment.Description + "\n" + "\n"; info += "The new Appointment Action's command is: " + e.Appointment.Action.Command + "\n"; info += "The new Appointment Action's command parameters are: " + e.Appointment.Action.Parameters + "\n"; MessageBox.Show( info, "AfterInvokeAppointmentAction", MessageBoxButtons.OK ); }