Hello everyone,
I am currently stuck on a problem where edited appointments seem to get reset during the edit event chain.
Up until AppointmentSaving, everything looks normal. I set some breakpoints in my appointment's Start and End properties and both get updated to the new time. However, shortly after AppointmentSaving but before AppointmentEdited, the appointment's properties get reset to their previous state.
Through the aforementioned breakpoints, I was able to trace my problem down to the ScheduleView's EditableObjectBase class, more specifically its EndEdit() method, where a backup of the appointment's original state seems to be restored. Strangely though, CancelEdit() does not restore the state and leaves Start and End as is (in their edited state). Is this supposed to happen? I could not find any information about that behavior in the docs.