Files
KfChatDotNet/KfChatDotNetGui/ViewModels/RoomSettingsWindowViewModel.cs
barelyprofessional 9f92fc8e27 Initial commit
2024-03-25 20:11:49 +08:00

20 lines
521 B
C#

using System.Collections.ObjectModel;
using KfChatDotNetGui.Models;
using ReactiveUI;
namespace KfChatDotNetGui.ViewModels;
public class RoomSettingsWindowViewModel : ViewModelBase
{
private ObservableCollection<RoomSettingsModel.RoomList> _roomList = new()
{
new RoomSettingsModel.RoomList {Id = 1, Name = "General"}
};
public ObservableCollection<RoomSettingsModel.RoomList> RoomList
{
get => _roomList;
set => this.RaiseAndSetIfChanged(ref _roomList, value);
}
}