ファイル
YMM4-ProxyForge/ProxyForge/ViewModels/GenerationPopupViewModel.cs
T
routersys 5ef1222518 ZeroDiskProxyからProxyForgeへのプロジェクト全体のリブランディング
プロジェクト名をZeroDiskProxyからProxyForgeへ全面的にリブランディングしました。
2026-03-25 19:58:39 +09:00

24 行
631 B
C#

using ProxyForge.Progress;
using System.Collections.ObjectModel;
using YukkuriMovieMaker.Commons;
namespace ProxyForge.ViewModels;
internal sealed class GenerationPopupViewModel : Bindable
{
public ObservableCollection<ProxyGenerationItem> Items { get; }
private bool _hasItems;
public bool HasItems
{
get => _hasItems;
set => Set(ref _hasItems, value);
}
internal GenerationPopupViewModel(ObservableCollection<ProxyGenerationItem> items)
{
Items = items;
Items.CollectionChanged += (_, _) => HasItems = Items.Count > 0;
HasItems = Items.Count > 0;
}
}