Eden M
Eden M

Reputation: 171

VSTO - Recurring item popup status

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).

enter image description here

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

Answers (2)

Eugene Astafiev
Eugene Astafiev

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

Dmitry Streblechenko
Dmitry Streblechenko

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

Related Questions