예제 #1
0
파일: MessageActions.cs 프로젝트: mo5h/omeo
 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");
 }
예제 #2
0
파일: MessageActions.cs 프로젝트: mo5h/omeo
 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;
 }