Beispiel #1
0
 protected virtual void OnProcessSync(SyncItemEventArgs args)
 {
     EventHandler<SyncItemEventArgs> tmp = ProcessSyncEvent;
     if (tmp != null)
     {
         tmp(this, args);
     }
 }
Beispiel #2
0
        protected virtual void OnProcessSync(object sender, SyncItemEventArgs args)
        {
            //Устанавливаем новый статус
            SyncItemInfo status = new SyncItemInfo();

            status.Status = eSyncStatus.InProgress;
            _syncItemForm.ThrSetSyncItemStatus(args.oItemType, status);
            //Планируем задание синхронизации
            _syncApp.SheduleSyncronizeTask(args.oItemType);
        }
Beispiel #3
0
 protected virtual void vistaMenuCtrl_itemclick(OutlookAddin.OutlookUI.VistaMenuControl.VistaMenuItemClickArgs args)
 {
     Outlook.OlItemType oItemType = (Outlook.OlItemType)args.Item.ItemTag;
     SyncMenuItem menuItem = FindSyncMenuItem(oItemType);
     //Избегаем повторного нажатия
     if (menuItem != null && menuItem.CurrentSyncStatus != eSyncStatus.InProgress)
     {
         SyncItemEventArgs syncItemArgs = new SyncItemEventArgs(oItemType);
         OnProcessSync(syncItemArgs);
     }
 }
Beispiel #4
0
 protected virtual void OnProcessSync(object sender, SyncItemEventArgs args)
 {
     //Устанавливаем новый статус
     SyncItemInfo status = new SyncItemInfo();
     status.Status = eSyncStatus.InProgress;
     _syncItemForm.ThrSetSyncItemStatus(args.oItemType, status);
     //Планируем задание синхронизации
     _syncApp.SheduleSyncronizeTask(args.oItemType);
 }
Beispiel #5
0
 protected virtual void vistaMenuCtrl_itemclick(OutlookAddin.OutlookUI.VistaMenuControl.VistaMenuItemClickArgs args)
 {
     Outlook.OlItemType oItemType = (Outlook.OlItemType)args.Item.ItemTag;
     SyncMenuItem menuItem = FindSyncMenuItem(oItemType);
     //Избегаем повторного нажатия
     if (menuItem != null && menuItem.CurrentSyncStatus != eSyncStatus.InProgress)
     {
         SyncItemEventArgs syncItemArgs = new SyncItemEventArgs(oItemType);
         OnProcessSync(syncItemArgs);
     }
 }
Beispiel #6
0
 protected virtual void OnProcessSync(SyncItemEventArgs args)
 {
     EventHandler<SyncItemEventArgs> tmp = ProcessSyncEvent;
     if (tmp != null)
     {
         tmp(this, args);
     }
 }