バージョン

AfterPerformAction イベント (UltraWeekView)

キーアクションのマッピングに関連付けられたアクションが実行された後に発生するイベント。
シンタックス
'宣言
 
Public Event AfterPerformAction As AfterWeekViewPerformActionEventHandler
public event AfterWeekViewPerformActionEventHandler AfterPerformAction
イベント データ

イベント ハンドラが、このイベントに関連するデータを含む、AfterWeekViewPerformActionEventArgs 型の引数を受け取りました。次の AfterWeekViewPerformActionEventArgs プロパティには、このイベントの固有の情報が記載されます。

プロパティ解説
Action 実行されたアクション。
使用例
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule

    Private Sub UltraDayView1_BeforePerformAction(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinSchedule.BeforeDayViewPerformActionEventArgs) Handles UltraDayView1.BeforePerformAction
        '	Cancel the event if the action is 'DeleteSelectedAppointments', to
        '	prevent the end user from deleting appointments via the keyboard.
        If e.Action = UltraDayViewAction.DeleteSelectedAppointments Then
            e.Cancel = True
        End If

    End Sub

    Private Sub UltraDayView1_AfterPerformAction(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinSchedule.AfterDayViewPerformActionEventArgs) Handles UltraDayView1.AfterPerformAction
        '   Make the system 'beep' sound if the end user cancels edit mode
        If e.Action = UltraDayViewAction.EndCurrentEditDiscardChanges Then
            Beep()
        End If

    End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using System.Diagnostics;

		private void ultraDayView1_BeforePerformAction(object sender, Infragistics.Win.UltraWinSchedule.BeforeDayViewPerformActionEventArgs e)
		{
			//	Cancel the event if the action is 'DeleteSelectedAppointments', to
			//	prevent the end user from deleting appointments via the keyboard.
			if ( e.Action == UltraDayViewAction.DeleteSelectedAppointments )
				e.Cancel = true;
		}

		private void ultraDayView1_AfterPerformAction(object sender, Infragistics.Win.UltraWinSchedule.AfterDayViewPerformActionEventArgs e)
		{
			//   Make the system 'beep' sound if the end user cancels edit mode
			if ( e.Action == UltraDayViewAction.EndCurrentEditDiscardChanges )
			{
				//	Note: requires a reference to the Microsoft.VisualBasic assembly
				Microsoft.VisualBasic.Interaction.Beep();
			}
		}
参照