1
0
mirror of https://github.com/chylex/Discord-History-Tracker.git synced 2024-12-23 08:42:51 +01:00
Discord-History-Tracker/app/Desktop/Dialogs/CheckBox/CheckBoxItem.cs
2022-02-21 22:27:29 +01:00

25 lines
477 B
C#

using DHT.Utils.Models;
namespace DHT.Desktop.Dialogs.CheckBox {
class CheckBoxItem : BaseModel {
public string Title { get; init; } = "";
public object? Item { get; init; } = null;
private bool isChecked = false;
public bool Checked {
get => isChecked;
set => Change(ref isChecked, value);
}
}
sealed class CheckBoxItem<T> : CheckBoxItem {
public new T Item { get; }
public CheckBoxItem(T item) {
this.Item = item;
base.Item = item;
}
}
}