示例#1
0
 /**
  * Restituisce un'istanza della classe CacheManager
  */
 public static Cachemanager instanceCachemanager()
 {
     if (instance == null)
     {
         instance = new Cachemanager();
     }
     return instance;
 }
示例#2
0
        private void Init()
        {
            const string pos = "ThisAddIn.Init - ";
            log = new Logger();

            log.Start();

            log.Info(pos + "INIT");

            AddKPCategory();

            attachmentName = Constants.KP_ATTACHMENT_NAME;
            attachmentPath = Constants.getWorkFolder();

            //Inizializzazione degli inspector
            inspectors = this.Application.Inspectors;
            inspectors.NewInspector += new Microsoft.Office.Interop.Outlook.InspectorsEvents_NewInspectorEventHandler(Inspectors_NewInspector);

            //Inizializzazione della cache
            cache = Cachemanager.instanceCachemanager();

            Ribbons = new Hashtable();
            MailItems = new Hashtable();
            RibbonsType = new Hashtable();

            //Inizializzazione della lista della lista delle cartelle da monitorare
            listItems = new List<Outlook.Items>();

            log.Info(pos + "END");
        }