forked from sim0n00ps/OF-DL
21 lines
489 B
C#
21 lines
489 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
namespace OF_DL.Gui.ViewModels;
|
|
|
|
public partial class SelectableUserViewModel(string username, long userId) : ViewModelBase
|
|
{
|
|
public string Username { get; } = username;
|
|
|
|
public long UserId { get; } = userId;
|
|
|
|
public event EventHandler? SelectionChanged;
|
|
|
|
[ObservableProperty]
|
|
private bool _isSelected;
|
|
|
|
partial void OnIsSelectedChanged(bool value)
|
|
{
|
|
SelectionChanged?.Invoke(this, EventArgs.Empty);
|
|
}
|
|
}
|