private async Task ResetGoogleCalendarInternal() { if (SelectedProfile.GoogleSettings.GoogleAccount == null || SelectedProfile.GoogleSettings.GoogleCalendar == null) { MessageService.ShowMessageAsync("Please select a Google calendar to wipe"); return; } var task = await MessageService.ShowConfirmMessage( "Are you sure you want to reset events from 10 year past and 10 year future?"); if (task != MessageDialogResult.Affirmative) { return; } var calendarSpecificData = new Dictionary <string, object> { { "CalendarId", SelectedProfile.GoogleSettings.GoogleCalendar.Id }, { "AccountName", SelectedProfile.GoogleSettings.GoogleAccount.Name } }; var result = await GoogleCalendarService.ResetCalendarEntries(calendarSpecificData); if (!result) { MessageService.ShowMessageAsync("Reset calendar failed."); } }