Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DXGoogleCalendarSync.ProgressChanged Event

Repeatedly occurs as the synchronization process makes noticeable progress. Allows you to track the progress and update UI elements (e.g., a ProgressBarControl accordingly).

Namespace: DevExpress.XtraScheduler.GoogleCalendar

Assembly: DevExpress.XtraScheduler.v24.2.GoogleCalendar.dll

NuGet Package: DevExpress.Win.Scheduler.GoogleCalendar

#Declaration

public event EventHandler<ProgressChangedEventArgs> ProgressChanged

#Event Data

The ProgressChanged event's data class is DevExpress.XtraScheduler.GoogleCalendar.ProgressChangedEventArgs.

#Remarks

The ProgressChanged event raises when its returned integer e.Progress parameter changes. The Progress parameter can have values from 0 to 100, which means when the ProgressChanged event occurs, the synchronization made 1% progress.

The code below illustrates how to display the synchronization progress using the “biSyncProgress” progress bar control, and report the total number of synced appointments with a label.

void DxGoogleCalendarSync1_ProgressChanged(object sender, GoogleCalendar.ProgressChangedEventArgs e) {
        this.biSyncProgress.EditValue = e.Progress;
        if (e.Progress == 100) {
                this.biSyncProgress.Visibility = BarItemVisibility.Never;
                label1.Text = e.SyncedObjectCount.ToString() + " object synced";
        }
}
See Also