'宣言 Public ReadOnly Property EventManager As CalendarComboEventManager
public CalendarComboEventManager EventManager {get;}
Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Imports Infragistics.Win.UltraWinSchedule.CalendarCombo Private Sub DisableValidationErrorEvent() ' Use the EventManager's IsEnabled method to determine whether the event ' is enabled if it is, use the SetEnabled method to disable it. If (Me.ultraCalendarCombo1.EventManager.IsEnabled(CalendarComboEventIds.ValidationError)) Then Me.ultraCalendarCombo1.EventManager.SetEnabled(CalendarComboEventIds.ValidationError, False) End If End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; using Infragistics.Win.UltraWinSchedule.CalendarCombo; private void DisableValidationErrorEvent() { // Use the EventManager's IsEnabled method to determine whether the event // is enabled; if it is, use the SetEnabled method to disable it. if ( this.ultraCalendarCombo1.EventManager.IsEnabled( CalendarComboEventIds.ValidationError ) ) this.ultraCalendarCombo1.EventManager.SetEnabled( CalendarComboEventIds.ValidationError, false ); }