예제 #1
0
        private void OnSelectionChange()
        {
            if (explorer.Selection.Count > 0 && explorer.Selection[1] is Outlook.MailItem mailItem)
            {
                if (mailEntryId != mailItem.EntryID)
                {
                    mailWrapper?.Dispose();

                    mailEntryId = mailItem.EntryID;
                    mailWrapper = new MailWrapper(mailItem, explorer);
                    //var headers = mailItem.GetHeaders();
                    return;
                }
            }

            CustomTaskPaneManager.GetInstance().RemovePane(explorer);
        }
예제 #2
0
 internal static void Show(this PaneWrapper _wrapper)
 {
     CustomTaskPaneManager.GetInstance().ShowPane(_wrapper);
 }