Esempio n. 1
0
 private SyncApplication(OutlookApplication outlookApplication, UserProfileSetting settings)
 {
     _outlookApplication = outlookApplication;
     _settings = settings;
     _workManager = new ThreadedWorkManager<Outlook.OlItemType>(this.DoSync);
 }
Esempio n. 2
0
        /// <summary>
        /// Creates the instance.
        /// </summary>
        /// <param name="oApp">The o app.</param>
        /// <returns></returns>
        public static SyncApplication CreateInstance(OutlookApplication outlookApplication)
        {
            SyncApplication retVal = _instance;
            if (retVal == null)
            {
                UserProfileSetting settings = UserProfileSetting.LoadActiveProfile();

                if (settings != null)
                {
                    retVal = _instance = new SyncApplication(outlookApplication, settings);
                }
            }
            return retVal;
        }