18 lines
No EOL
555 B
C#
18 lines
No EOL
555 B
C#
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<TapeReferenceClip> SelectedReferences => SelectedClips.OfType<TapeReferenceClip>();
|
|
|
|
public override bool Update(TeaBox.ActionContext context, TeaBox.ActionInfo info)
|
|
{
|
|
info.Visible = SelectedReferences.Any();
|
|
return true;
|
|
}
|
|
}
|
|
} |