Skip to content

DevExpress-Examples/winforms-scheduler-sync-google-event-colors-with-labels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinForms Scheduler - Synchronize colors of Google Events with appointment labels

In this example, the WinForms Scheduler is bound to an Entity Framework Core data source.

To run the sample, do the following:

  • Go to "Project > Manage NuGet packages..." to re-install EF Core and Google Calendar API packages used in the example.
  • Replace the contents of the client_secret.json file with contents of your own credentials file. You can download this file at .NET Quickstart.

The application will ask you to log in with a Google account.

To select a Google Calendar that you want to sync with the Scheduler control, click the Options Ribbon button. To manually start synchronization, click Sync.

A custom UpdateLabels method retrieves colors used by Google Events and uses them to populate the Scheduler Label collection.

Colors are synchronized on AppointmentValuesRequested / EventValuesRequested events. These events occur when the DXGoogleCalendarSync needs to retrieve appointment data and assign it to a paired Google Event, or vice versa.