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; } } }
public override void Update(IActionContext context, ref ActionPresentation presentation) { base.Update(context, ref presentation); if (presentation.Visible) { FavoritesTools.IActionUpdateWeblinks(context, ref presentation); } }
public void Update(IActionContext context, ref ActionPresentation presentation) { FavoritesTools.IActionUpdateWeblinks(context, ref presentation); }