Esempio n. 1
0
 //Create callback methods here. For more information about adding callback methods, visit http://go.microsoft.com/fwlink/?LinkID=271226
 public bool GetVisible(Office.IRibbonControl control)
 {
     foreach (MailItem mail in Globals.ThisAddIn.Application.ActiveExplorer().Selection)
     {
         if (PatchExtractor.IsPatch(mail))
         {
             return(true);
         }
     }
     return(false);
 }
Esempio n. 2
0
 public void OnExtractPatch(Office.IRibbonControl control)
 {
     PatchExtractor.Extract(Globals.ThisAddIn.Application.ActiveExplorer().Selection);
 }