19 行
557 B
C#
19 行
557 B
C#
using YukkuriMovieMaker.Commons;
|
|
|
|
namespace UndoTree;
|
|
|
|
internal class UndoTreeRecordedBranchViewModel(string name, UndoTreeNodeViewModel start, UndoTreeNodeViewModel head, bool wasActive) : Bindable
|
|
{
|
|
public string Name { get; } = name;
|
|
|
|
public UndoTreeNodeViewModel Base { get; } = start;
|
|
|
|
public UndoTreeNodeViewModel Head { get; } = head;
|
|
|
|
public bool WasActive { get; } = wasActive;
|
|
|
|
public IReadOnlyList<UndoTreeNodeViewModel> Chain => Head.StepsBelow(Base);
|
|
|
|
public string? RestoreHint { get; set => Set(ref field, value); }
|
|
}
|