mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-08-17 01:31:42 +02:00
.github
.idea
app
.idea
Desktop
Common
Dialogs
CheckBox
CheckBoxDialog.axaml
CheckBoxDialog.axaml.cs
CheckBoxDialogModel.cs
CheckBoxItem.cs
File
Message
Progress
TextBox
Discord
Main
Resources
Server
App.axaml
App.axaml.cs
Arguments.cs
Desktop.csproj
Program.cs
Resources
Server
Utils
.gitignore
Directory.Build.props
DiscordHistoryTracker.sln
Version.cs
build.bat
build.sh
empty.dht
global.json
tools
web
.gitattributes
.gitignore
LICENSE.md
README.md
25 lines
459 B
C#
25 lines
459 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;
|
|
}
|
|
}
|