Exemplo n.º 1
0
    public void RibbonMenuClick(IRibbonControl control)
    {
        var selection = control.Context as Microsoft.Office.Interop.Outlook.Selection;
        var mailItems = selection.OfType <Microsoft.Office.Interop.Outlook.MailItem>().ToList();

        System.Diagnostics.Trace.WriteLine($"RibbonMenuClick control: {control} type {control?.GetType().Name ?? "(null)"}");
    }
 public void RibbonMenuClick(IRibbonControl control)
 {
     System.Diagnostics.Trace.WriteLine($"RibbonMenuClick control: {control} type {control?.GetType().Name ?? "(null)"}");
 }