mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2024-12-23 08:42:51 +01:00
25 lines
477 B
C#
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;
|
|
}
|
|
}
|
|
}
|