Example #1
0
 public override void Update(IActionContext context, ref ActionPresentation presentation)
 {
     base.Update(context, ref presentation);
     if (presentation.Visible)
     {
         FavoritesTools.IActionUpdateWeblinks(context, ref presentation);
         if (presentation.Visible)
         {
             string text = "Mark as Unread";
             foreach (IResource res in context.SelectedResources.ValidResources)
             {
                 IResource source = res;
                 if (source.Type == "Weblink")
                 {
                     source = source.GetLinkProp("Source");
                 }
                 if (source != null && source.HasProp(Core.Props.IsUnread))
                 {
                     text = "Mark as Read";
                     break;
                 }
             }
             presentation.Text = text;
         }
     }
 }
Example #2
0
 public override void Update(IActionContext context, ref ActionPresentation presentation)
 {
     base.Update(context, ref presentation);
     if (presentation.Visible)
     {
         FavoritesTools.IActionUpdateWeblinks(context, ref presentation);
     }
 }
Example #3
0
 public void Update(IActionContext context, ref ActionPresentation presentation)
 {
     FavoritesTools.IActionUpdateWeblinks(context, ref presentation);
 }