using System.Collections.Generic; using System.Linq; using JD.Timeline.View.Actions.Refactor; using JD.Serialization; namespace JD.Timeline.View.Actions { public class TapeReferenceActionHandlerBase : TapeActionHandlerBase { protected virtual IEnumerable SelectedReferences => SelectedClips.OfType(); public override bool Update(TeaBox.ActionContext context, TeaBox.ActionInfo info) { info.Visible = SelectedReferences.Any(); return true; } } }