Esempio n. 1
0
 protected override void ExecuteAction(IResource folder, PairIDs pairIDs)
 {
     Trace.WriteLine(">>> SynchronizeFolderNowAction.ExecuteAction");
     if (pairIDs == null)
     {
         return;
     }
     if (Folder.IsPublicFolder(folder))
     {
         RefreshFolderDescriptor.Do(JobPriority.Immediate, pairIDs, Settings.IndexStartDate);
     }
     Trace.WriteLine("<<< SynchronizeFolderNowAction.ExecuteAction");
 }
Esempio n. 2
0
 public override void Update(IActionContext context, ref ActionPresentation presentation)
 {
     if (context.SelectedResources.Count == 0 || !context.SelectedResources.AllResourcesOfType(STR.MAPIFolder))
     {
         presentation.Visible = false;
         return;
     }
     foreach (IResource folder in context.SelectedResources)
     {
         if (Folder.IsPublicFolder(folder) && !Folder.IsIgnored(folder))
         {
             presentation.Enabled = true;
             presentation.Visible = true;
             return;
         }
     }
     presentation.Enabled = false;
     presentation.Visible = false;
     return;
 }