diff --git a/Outlook2013TodoAddIn/AppointmentsControl.cs b/Outlook2013TodoAddIn/AppointmentsControl.cs index 249e673..f091e9a 100644 --- a/Outlook2013TodoAddIn/AppointmentsControl.cs +++ b/Outlook2013TodoAddIn/AppointmentsControl.cs @@ -263,8 +263,12 @@ namespace Outlook2013TodoAddIn { if (Properties.Settings.Default.Accounts != null && Properties.Settings.Default.Accounts.Contains(store.DisplayName)) { - Outlook.Folder calFolder = store.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar) as Outlook.Folder; - appts.AddRange(this.RetrieveAppointmentsForFolder(calFolder)); + Outlook.Folders rootFolders = store.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar).Parent.Folders as Outlook.Folders; + foreach (Outlook.Folder folder in rootFolders) + { + appts.AddRange(this.RetrieveAppointmentsForFolder(folder)); + } + // TODO: Shared calendars? } }