![]() Gravitybox Schedule.NET
1998-2005 Gravitybox Software LLC
Page 76 of 90
listIntersection = list1.Intersect(list2)
'All object in list 1 minus all object in list2
listDifference = list1.Subtract(list2)
How do I cancel the default property dialog?
Before the default dialog is displayed the event BeforePropertyDialog is raised. It has
a Boolean cancel parameter that may set to true to cancel the dialog.
How do I cancel other dialog screens?
Each dialog is displayed only after some Before
event is raised. You may cancel
any dialog from its associated Before
event. The relavant events are as follows:
BeforePropertyDialog, BeforeCategoryListDialog, BeforeProviderListDialog,
BeforeProviderConfigurationDialog, BeforeCategoryConfigurationDialog,
BeforeRoomConfigurationDialog.
How do I display the default dialogs?
You may display any of the built-in dialogs in code using the schedules Dialogs
object. There are eight built-in dialogs and they may be displayed with the following
methods: ShowAboutDialog, ShowAlarmDialog, ShowCategoryConfiguration,
ShowCategoryDialog, ShowPropertyDialog, ShowProviderConfiguration,
ShowProviderDialog, ShowRoomConfiguration.
How do I display the configuration screens?
All of the configuration screens may be displayed from code. In fact they may only be
displayed from code since there is no way for the user to show them. The following
code snippet displays the category, provider, and room configuration screen
respectively.
Call Schedule1.Dialogs.ShowCategoryConfiguration()
Call Schedule1.Dialogs.ShowProviderConfiguration()
Call Schedule1.Dialogs.ShowRoomConfiguration()
How do I ensure a day (time, room, etc.) is visible in the viewport?
The schedule has a visibility object that can bring any portion of the schedule into the
viewport. The Show
method take a parameter that identifies an area to display. If
possible the area is brought into the viewing area. The code snippet below ensures that
a date and a time are visible.
Call Schedule1.Visibility.ShowDate(#1/1/2004#)
Call Schedule1.Visibility.ShowTime(#11:00:00 AM#)
How do I get the first visible date (time, room, etc) in the viewport?
The schedules visibility object also can be used to determine what is the first date, time,
etc that is visible in the top, left corner of the schedule. The code snippet below
retrieves the first visible date and time for the schedule.
|