private void OutlookCacheUpdatedEventHandler(OutlookCacheUpdatedEvent args)
        {
            var jumpList = JumpList.GetJumpList(Application.Current) ?? new JumpList();

            JumpList.SetJumpList(Application.Current, jumpList);

            var allTasks = jumpList.GetJumpTasks().ToList();

            //if (!allTasks.Any(t => t.Arguments == "/quickjoin"))
            //    jumpList.Add("Instantly Join Meeting", "Quick Actions", "/quickjoin");

            allTasks.Where(t => t.CustomCategory == "Outlook Calendar").ToList().ForEach(t => jumpList.Remove(t.Arguments));
            OutlookCachingService.GetCachedMeetings()
            .ToList()
            .ForEach(oi => jumpList
                     .Add(String.Format("{0} ({1})", oi.Subject, oi.Start.ToShortTimeString()),
                          "Outlook Calendar",
                          "/join:" + oi.LyncMeeting.OriginalUri));
            jumpList.Apply();
        }
Example #2
0
 private void OutlookCacheUpdatedEventHandler(OutlookCacheUpdatedEvent args)
 {
     Events           = new ObservableCollection <OutlookItem>(OutlookCachingService.GetCachedMeetings(requireOnlineMeeting: !ShowAll));
     OutlookException = OutlookCachingService.OutlookException;
 }