Beispiel #1
0
 public void MonitorFolderItemEvents(Office.IRibbonControl control)
 {
     // Hook into the currently selected folder, and register for events
     try
     {
         Outlook.Folder folder = ((Microsoft.Office.Interop.Outlook.Folder)control.Context);
         FolderWrapper.CreateFolderWrapper(folder);
     }
     catch { }
 }
Beispiel #2
0
 public bool IsUnmonitorFolderVisible(Office.IRibbonControl control)
 {
     try
     {
         Outlook.Folder folder = ((Microsoft.Office.Interop.Outlook.Folder)control.Context);
         if (folder != null)
         {
             return(FolderWrapper.FolderIsMonitored(folder));
         }
     }
     catch { }
     return(false);
 }