예제 #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 { }
 }
예제 #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);
 }