1
0
mirror of https://github.com/chylex/Discord-History-Tracker.git synced 2025-07-05 03:38:52 +02:00
Discord-History-Tracker/app/Desktop/Dialogs/CheckBox/CheckBoxItem.cs

21 lines
396 B
C#

using PropertyChanged.SourceGenerator;
namespace DHT.Desktop.Dialogs.CheckBox;
partial class CheckBoxItem {
public string Title { get; init; } = "";
public object? Item { get; init; } = null;
[Notify]
private bool isChecked = false;
}
sealed class CheckBoxItem<T> : CheckBoxItem {
public new T Item { get; }
public CheckBoxItem(T item) {
this.Item = item;
base.Item = item;
}
}