mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Initial commit
This commit is contained in:
20
KfChatDotNetGui/ViewModels/RoomSettingsWindowViewModel.cs
Normal file
20
KfChatDotNetGui/ViewModels/RoomSettingsWindowViewModel.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user