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); }
internal static void Show(this PaneWrapper _wrapper) { CustomTaskPaneManager.GetInstance().ShowPane(_wrapper); }