Exemple #1
0
        private void ThisAddIn_Startup(object sender, EventArgs e)
        {
            this.safeDomains = new ArrayList(ConfigurationManager.AppSettings["safeDomains"].Split(','));
            ArrayList userSafeDomains = new ArrayList(Properties.Settings.Default.safeDomains.Split(','));

            this.safeDomains.AddRange(userSafeDomains);

            ctpWindowWrapper      = new CTP_InspectorWrapper();
            mailItemWindowWrapper = new MailItem_InspectorWrapper();

            explorers              = this.Application.Explorers;
            explorers.NewExplorer += Explorers_NewExplorer;

            Explorer currentExplorer = this.Application.ActiveExplorer();

            currentExplorer.InlineResponse      += CurrentExplorer_InlineResponse;
            currentExplorer.InlineResponseClose += CurrentExplorer_InlineResponseClose;
            ExplorerEvents_10_Event explorerEvents = currentExplorer;

            inspectors = this.Application.Inspectors;
            inspectors.NewInspector += new InspectorsEvents_NewInspectorEventHandler(Inspectors_NewInspector);

            this._explorersCount      = this.explorers.Count;
            this.inlineResponseActive = false;
            this.anyInspectorActive   = false;

            Application.ItemSend += Application_ItemSend;
        }
Exemple #2
0
        private void Explorers_NewExplorer(Explorer Explorer)
        {
            this._explorersCount = this.explorers.Count;
            Debug.WriteLine("Opened new explorer");
            Explorer.InlineResponse      += CurrentExplorer_InlineResponse;
            Explorer.InlineResponseClose += CurrentExplorer_InlineResponseClose;
            ExplorerEvents_10_Event explorerEvents = Explorer;

            explorerEvents.Close += ExplorerEvents_Close;
        }