mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2024-11-25 05:42:45 +01:00
21 lines
430 B
C#
21 lines
430 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
namespace DHT.Desktop.Dialogs.CheckBox;
|
|
|
|
partial class CheckBoxItem : ObservableObject {
|
|
public string Title { get; init; } = "";
|
|
public object? Item { get; init; } = null;
|
|
|
|
[ObservableProperty]
|
|
private bool isChecked = false;
|
|
}
|
|
|
|
sealed class CheckBoxItem<T> : CheckBoxItem {
|
|
public new T Item { get; }
|
|
|
|
public CheckBoxItem(T item) {
|
|
this.Item = item;
|
|
base.Item = item;
|
|
}
|
|
}
|