给变量添加Mqtt服务器的功能

This commit is contained in:
2025-07-05 18:15:21 +08:00
parent 33bdc5e131
commit 6c37a4a927
10 changed files with 203 additions and 3 deletions

View File

@@ -171,4 +171,16 @@ public class DialogService :IDialogService
}
return null;
}
public async Task<Mqtt?> ShowMqttSelectionDialog()
{
var vm = new MqttSelectionDialogViewModel();
var dialog = new MqttSelectionDialog(vm);
var result = await dialog.ShowAsync();
if (result == ContentDialogResult.Primary)
{
return vm.SelectedMqtt;
}
return null;
}
}