Files
DMS/DMS.WPF/ViewModels/Dialogs/MqttSelectionDialogViewModel.cs

25 lines
567 B
C#
Raw Normal View History

2025-07-05 18:15:21 +08:00
using System.Collections.ObjectModel;
using CommunityToolkit.Mvvm.ComponentModel;
using DMS.Data.Repositories;
2025-07-05 18:15:21 +08:00
using System.Threading.Tasks;
using DMS.Models;
using DMS.Services;
2025-07-05 18:15:21 +08:00
namespace DMS.ViewModels.Dialogs;
2025-07-05 18:15:21 +08:00
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
}