public InspectorWrapper(OutlookTagBarAddin addin, Outlook.Inspector Inspector, Outlook.MailItem mailItem)
        {
            this.mailItem  = mailItem;
            this.inspector = Inspector;
            ((Outlook.InspectorEvents_Event)inspector).Close +=
                new Outlook.InspectorEvents_CloseEventHandler(InspectorWrapper_Close);

            logger.Info("ADDING taskPane (inspectorTagBar)\n");



            inspectorTagBar          = new TagBar();
            inspectorTagBarDecorator = new OutlookTagBarDecorator(addin, inspectorTagBar, new OutlookTagBarContext(addin.GetGlobalTaggingContext()));
            inspectorTagBar.SetTagBarHelper(this.inspectorTagBarDecorator);
            inspectorTagBar.LoadTagList(Utils.GetLatestTagList());
            taskPane = Globals.OutlookTagBarAddin.CustomTaskPanes.Add(inspectorTagBar, "Inspector Tag Bar", this.inspector);
            taskPane.DockPosition    = Office.MsoCTPDockPosition.msoCTPDockPositionTop;
            taskPane.Height          = 57;
            taskPane.Visible         = true;
            taskPane.VisibleChanged += new EventHandler(TaskPane_VisibleChanged);
        }
 public OutlookTagBarDecorator(OutlookTagBarAddin addin, TagBar tagBar, OutlookTagBarContext localTaggingContext)
 {
     this.addin  = addin;
     this.tagBar = tagBar;
     SetLocalTaggingContext(localTaggingContext);
 }