添加了 Mqtt 的界面和添加对话框
This commit is contained in:
26
ViewModels/Dialogs/MqttDialogViewModel.cs
Normal file
26
ViewModels/Dialogs/MqttDialogViewModel.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using PMSWPF.Models;
|
||||
|
||||
namespace PMSWPF.ViewModels.Dialogs;
|
||||
|
||||
public partial class MqttDialogViewModel : ObservableObject
|
||||
{
|
||||
[ObservableProperty]
|
||||
private Mqtt _mqtt;
|
||||
|
||||
[ObservableProperty] private string title ;
|
||||
[ObservableProperty] private string primaryButContent ;
|
||||
|
||||
public MqttDialogViewModel(Mqtt mqtt)
|
||||
{
|
||||
_mqtt = mqtt;
|
||||
}
|
||||
|
||||
|
||||
[RelayCommand]
|
||||
public void AddMqtt()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user