Example #1
0
 private UIController(AddinModule addinModule, OutlookListener outlookListener, SyncApplication app, 
     FormSyncItem syncForm, FormSyncOptions syncOprionsForm,	 FormSyncConflictResolution syncConflictResForm)
 {
     _addinModule = addinModule;
     _outlookListener = outlookListener;
     _syncApp = app;
     _syncItemForm = syncForm;
     _syncOptionsForm = syncOprionsForm;
     _syncConflictResForm = syncConflictResForm;
 }
Example #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);
        }
Example #3
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;
        }
Example #4
0
        private void HookEvents(SyncApplication syncApp)
        {
            syncApp.SyncProcessBeginEvent -= OnSyncBegin;
            syncApp.SyncProcessBeginEvent += OnSyncBegin;

            syncApp.SyncProcessEndEvent -= OnSyncEnd;
            syncApp.SyncProcessEndEvent += OnSyncEnd;

            syncApp.ProgressChanged -= OnSyncProcessChange;
            syncApp.ProgressChanged += OnSyncProcessChange;

            syncApp.SessionStateChanged -= OnSyncSessionStageProcessChange;
            syncApp.SessionStateChanged += OnSyncSessionStageProcessChange;

            syncApp.ItemConflicting -= OnSyncItemConflicting;
            syncApp.ItemConflicting += OnSyncItemConflicting;

            syncApp.ItemChangeSkipped -= OnSyncItemChangeSkiped;
            syncApp.ItemChangeSkipped += OnSyncItemChangeSkiped;
        }