Files
DMS/ViewModels/Dialogs/MqttSelectionDialogViewModel.cs

25 lines
579 B
C#
Raw Normal View History

2025-07-05 18:15:21 +08:00
using System.Collections.ObjectModel;
using CommunityToolkit.Mvvm.ComponentModel;
using PMSWPF.Models;
using PMSWPF.Data.Repositories;
using System.Threading.Tasks;
using PMSWPF.Services;
2025-07-05 18:15:21 +08:00
namespace PMSWPF.ViewModels.Dialogs;
public partial class MqttSelectionDialogViewModel : ObservableObject
{
[ObservableProperty]
private ObservableCollection<Mqtt> mqtts;
[ObservableProperty]
private Mqtt? selectedMqtt;
public MqttSelectionDialogViewModel(DataServices dataServices)
2025-07-05 18:15:21 +08:00
{
Mqtts = new ObservableCollection<Mqtt>(dataServices.Mqtts);
2025-07-05 18:15:21 +08:00
}
2025-07-05 18:15:21 +08:00
}