Current filter:
                                You should refresh the page.
                                We apologize for the inconvenience. Our ordering system and the support center may be offline for a few hours on Sunday, May 19 due to maintenance tasks.
                                0
                                  • I am synchronizing events between Exchange and the VCL Scheduler control. I know this is filed under .NET - stick with me! My synchronization code is in C#. There is no VCL code, I am just synchronizing with the underlying DB.


                                    I am at a bit of a sticking point and wondering if I can make use of the XtraScheduler code (or, if needed, the VCL scheduler code via a DLL) in order to find out the following:


                                    Given a recurring pattern's master event information AND the start time of a single occurrence of that pattern, I need to know what the index of that occurrence WOULD be *even if* this occurrence does not exist outside of the pattern.


                                    In other words, imagine there is no scheduler control. Is there any way to re-use any of the DX Scheduler code to determine the index (integer) of an occurrence of a pattern without it existing, and only knowing its start time?


                                    The reason is that, when an occurrence of a pattern is deleted in Exchange, the only information available is the original start time of that single occurrence. There is nothing else provided for information on that occurrence, and no way to find (from Exchange) what the index was, as the occurrence is already deleted.


                                    I'm sorry if that isn't clear. Hopefully I explained myself well. I started coding something myself but when you factor in all of the patterns and permutations I thought I may not need to reinvent the wheel.


                                    Thanks!

                                You must  log in  or  register  to leave comments

                                1 Solution

                                0

                                Hi,

                                Thank you for your message. You can use the OccurrenceCalculator.FindFirstOccurrenceIndex Method for this purpose. Note that it is not necessary to add a SchedulerControl to your application to perform the corresponding calculations. Attached is a complete sample. I hope this information will help you.

                                Thanks,
                                Alessandro.

                                Q415346.zip
                                • Thanks - works great!

                                • I am glad to hear that you have found my assistance helpful. Thank you for letting us know your result. Please feel free to contact us if you have further difficulties. We will be happy to assist you.

                                You must  log in  or  register  to leave comments
                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.