Exemplo n.º 1
0
 protected override Office.IRibbonExtensibility CreateRibbonExtensibilityObject()
 {
     //Override for creating a custom ribbon
     //NOTE: This method is called once for the AddIn (before _Startup)
     if (this.mRibbon == null)
     {
         this.mRibbon = new IssueMgtRibbon();
     }
     return(this.mRibbon);
 }
Exemplo n.º 2
0
        private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
        {
            //Remove custom task pane
            //Remove ref
            IssueInspector.OutlookApp = null;

            try {
                //Remove inspector ribbon support
                this.mRibbon = null;
                this.mInspectors.NewInspector -= new Outlook.InspectorsEvents_NewInspectorEventHandler(OnNewInspector);
                this.mInspectors = null;
                this.InspectorWrappers.Clear();
                this.InspectorWrappers = null;
            }
            catch (Exception ex) { App.ReportError(ex, false, LogLevel.Warning); }
        }