Posted 10 October 2017, 10:13 pm EST
Hello,
We have linked the events AppointmentChanged and AppointmentAdded to two commands in the view model layer. When we add a new appointment, and the event AppointmentAdded raises, we change some properties of the appointment, like Id or start time (we need do it), before we modify these properties, we call to the method BeginEdit, and when we finish, we call EndEdit. In this moment, the event AppointmentChanged raises, and we don’t know if this event comes from the modification of the new event or from a modification from the edit page in the calendar. How can we disable the event AppointmentChanged when we are adding and editing the new appointment?
Regards.