Reputation: 171
I have some schedual meetings with reccurence(with the property IsRecurring = 1) , when I want delete some meeting I get "Open reccuring item" popup, I want catch the status- if I want open just this one(1) or entire series(2).
Tried:
currentExplorer.SelectionChange += new ExplorerEvents_10_SelectionChangeEventHandler(CurrentExplorer_Event); currentExplorer.ViewSwitch += new ExplorerEvents_10_ViewSwitchEventHandler(ViewSwitch_Event);
This events not catch the selection status. What is the best way to get this information?
Upvotes: 0
Views: 79
Reputation: 49405
There is no way to know which exactly is chosen on the dialog out of the box. The best what you could do is to handle the NewInspector
event and check the RecurrenceState property which returns an OlRecurrenceState
constant indicating the recurrence property of the specified object.
For the Just this one
option the value should be olApptOccurrence
which means the appointment is an occurrence of a recurring appointment defined by a master appointment.
In case of entire series you may find the appointment which is a master appointment (olApptMaster
).
Upvotes: 1
Reputation: 66255
Track the Inspectors.NewInspector
event. From there, you can use Inspector.CurrentItem
property to access the AppointmentItem
object. Read the RecurrenceState
property - the possible values are olApptOccurrence
, olApptException
, olApptMaster
, or olApptNotRecurring
.
Upvotes: 1