예제 #1
0
        private void CustomTagRibbon_Load(object sender, RibbonUIEventArgs e)
        {
            utility = Globals.ThisAddIn.ProcessingUtility;
            this.manageTagsButton.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.manageTagsButton_Click);
            this.archiveButton.Click    += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.archiveButton_Click);
            this.settingsButton.Click   += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.settingsButton_Click);

            String baseLabelText = global::CELA_Email_Tags_Outlook_Plugin.CELA_Custom_Ribbon.manageTagsButtonLabelText;

            this.manageTagsButton.Label = baseLabelText;
        }
        private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            processingUtility        = new MailProcessingUtilities();
            inspectors               = this.Application.Inspectors;
            inspectors.NewInspector +=
                new Microsoft.Office.Interop.Outlook.InspectorsEvents_NewInspectorEventHandler(Inspectors_NewInspector);

            foreach (Outlook.Inspector inspector in inspectors)
            {
                Inspectors_NewInspector(inspector);
            }

            tagManagementControl  = new TagManagementControl();
            tagManagementTaskPane = this.CustomTaskPanes.Add(tagManagementControl, global::CELA_Email_Tags_Outlook_Plugin.CELA_Custom_Ribbon.tagManagmentDisplayPanelTitleText);
        }