Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
PrivateSub UltraDayView1_BeforeActiveOwnerChanged(ByVal sender AsObject, ByVal e As Infragistics.Win.UltraWinSchedule.BeforeActiveOwnerChangedEventArgs) Handles UltraDayView1.BeforeActiveOwnerChanged
' If the new ActiveOwner is the unassigned owner, cancel
' the event to disallow the unassigned owner from becoming
' activated.
If e.NewActiveOwner.IsUnassigned Then
e.Cancel = TrueEndIfEnd SubPrivateSub UltraWeekView1_BeforeActiveOwnerChanged(ByVal sender AsObject, ByVal e As Infragistics.Win.UltraWinSchedule.BeforeActiveOwnerChangedEventArgs) Handles UltraWeekView1.BeforeActiveOwnerChanged
' If the new ActiveOwner is the unassigned owner, cancel
' the event to disallow the unassigned owner from becoming
' activated.
If e.NewActiveOwner.IsUnassigned Then
e.Cancel = TrueEndIfEnd SubPrivateSub UltraWeekView1_AfterActiveOwnerChanged(ByVal sender AsObject, ByVal e As Infragistics.Win.UltraWinSchedule.AfterActiveOwnerChangedEventArgs) Handles UltraWeekView1.AfterActiveOwnerChanged
' Synchronize the UltraWeekView's ActiveOwner when the
' ActiveOwner changes in the UltraDayView control
IfNotMe.UltraDayView1.ActiveOwner Is e.NewActiveOwner ThenMe.UltraDayView1.ActiveOwner = e.NewActiveOwner
EndIfEnd SubPrivateSub UltraDayView1_AfterActiveOwnerChanged(ByVal sender AsObject, ByVal e As Infragistics.Win.UltraWinSchedule.AfterActiveOwnerChangedEventArgs) Handles UltraDayView1.AfterActiveOwnerChanged
' Synchronize the UltraWeekView's ActiveOwner when the
' ActiveOwner changes in the UltraDayView control
IfNotMe.ultraWeekView1.ActiveOwner Is e.NewActiveOwner ThenMe.ultraWeekView1.ActiveOwner = e.NewActiveOwner
EndIfEnd Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using System.Diagnostics;
privatevoid ultraDayView1_BeforeActiveOwnerChanged(object sender, Infragistics.Win.UltraWinSchedule.BeforeActiveOwnerChangedEventArgs e)
{
// If the new ActiveOwner is the unassigned owner, cancel
// the event to disallow the unassigned owner from becoming
// activated.
if ( e.NewActiveOwner.IsUnassigned )
e.Cancel = true;
}
privatevoid ultraWeekView1_BeforeActiveOwnerChanged(object sender, Infragistics.Win.UltraWinSchedule.BeforeActiveOwnerChangedEventArgs e)
{
// If the new ActiveOwner is the unassigned owner, cancel
// the event to disallow the unassigned owner from becoming
// activated.
if ( e.NewActiveOwner.IsUnassigned )
e.Cancel = true;
}
privatevoid ultraDayView1_AfterActiveOwnerChanged(object sender, Infragistics.Win.UltraWinSchedule.AfterActiveOwnerChangedEventArgs e)
{
// Synchronize the UltraWeekView's ActiveOwner when the
// ActiveOwner changes in the UltraDayView control
if ( this.ultraWeekView1.ActiveOwner != e.NewActiveOwner )
this.ultraWeekView1.ActiveOwner = e.NewActiveOwner;
}
privatevoid ultraWeekView1_AfterActiveOwnerChanged(object sender, Infragistics.Win.UltraWinSchedule.AfterActiveOwnerChangedEventArgs e)
{
// Synchronize the UltraDayView's ActiveOwner when the
// ActiveOwner changes in the UltraWeekView control
if ( this.ultraDayView1.ActiveOwner != e.NewActiveOwner )
this.ultraDayView1.ActiveOwner = e.NewActiveOwner;
}