给变量添加Mqtt服务器的功能
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -21,5 +21,5 @@ public interface IDialogService
|
||||
Task<string> ShowImportExcelDialog();
|
||||
ContentDialog ShowProcessingDialog(string title, string message);
|
||||
Task<PollLevelType?> ShowPollLevelDialog(PollLevelType pollLevelType);
|
||||
|
||||
Task<Mqtt?> ShowMqttSelectionDialog();
|
||||
}
|
||||
Reference in New Issue
Block a user