19 行
514 B
C#
19 行
514 B
C#
using YukkuriMovieMaker.Commons;
|
|
|
|
namespace UndoTree;
|
|
|
|
internal class UndoTreeLineViewModel(UndoTreeLine? line) : Bindable
|
|
{
|
|
public UndoTreeLine? Line { get; } = line;
|
|
|
|
public string Name { get; private set => Set(ref field, value); } = line?.Name ?? Texts.WholeHistory;
|
|
|
|
public bool IsActive { get; private set => Set(ref field, value); }
|
|
|
|
internal void Refresh(UndoTreeLine? active)
|
|
{
|
|
Name = Line?.Name ?? Texts.WholeHistory;
|
|
IsActive = ReferenceEquals(Line, active);
|
|
}
|
|
}
|