DXGoogleCalendarSync.StateTrackingMode Property
Gets or sets whether this DXGoogleCalendarSync should automatically write session information to an .xml file.
Namespace: DevExpress.XtraScheduler.GoogleCalendar
Assembly: DevExpress.XtraScheduler.v19.1.GoogleCalendar.dll
Declaration
[DefaultValue(StateTrackingMode.Auto)]
public StateTrackingMode StateTrackingMode { get; set; }
Property Value
Type | Default | Description |
---|---|---|
StateTrackingMode | **Auto** | A StateTrackingMode enumerator value that specifies whether this DXGoogleCalendarSync should automatically write session information to an .xml file. |
Available values:
Name | Description |
---|---|
Auto | The DXGoogleCalendarSync automatically logs user activity and writes session information to an .xml file located in the working directory. You can call the DXGoogleCalendarSync.Save / DXGoogleCalendarSync.Load method overloads with no parameters to trigger this process. Alternatively, use method overloads which take the “Stream” parameter to save session info elsewhere. |
Manual | The DXGoogleCalendarSync does not automatically log user activity. If needed, you can call parameterized DXGoogleCalendarSync.Save / DXGoogleCalendarSync.Load method overloads to manually save session information. |
Remarks
If a DXGoogleCalendarSync component finds a Scheduler Appointment with the same ID as an existing Google Event but these objects contents differ, the component uses logged session information to determine whether it should assign Event data to an Appointment, or vice versa.
DXGoogleCalendarSync automatically writes this session information to the DXGoogleCalendarSync.xml file inside your project folder upon any Appointment edit. If you want to manually save this information, change the StateTrackingMode property to StateTrackingMode.Manual and call the DXGoogleCalendarSync.Save / DXGoogleCalendarSync.Load methods.
If you edit both a Google Event and its matching Appointment, and then call the DevExpress.XtraScheduler.GoogleCalendar.DXGoogleCalendarSync.Sync method, session info will not be enough to determine which of the Event-Appointment object pair should be taken as a “valid” object. In these cases the DXGoogleCalendarSync.ConflictDetected event raises.