添加批量修改激活状态
This commit is contained in:
@@ -203,4 +203,16 @@ public class DialogService :IDialogService
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public async Task<bool?> ShowIsActiveDialog(bool currentIsActive)
|
||||
{
|
||||
var vm = new IsActiveDialogViewModel(currentIsActive);
|
||||
var dialog = new IsActiveDialog(vm);
|
||||
var result = await dialog.ShowAsync();
|
||||
if (result == ContentDialogResult.Primary)
|
||||
{
|
||||
return vm.SelectedIsActive;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -24,4 +24,5 @@ public interface IDialogService
|
||||
Task<Mqtt?> ShowMqttSelectionDialog();
|
||||
Task<List<VariableData>> ShowOpcUaImportDialog(string endpointUrl);
|
||||
Task<OpcUaUpdateType?> ShowOpcUaUpdateTypeDialog();
|
||||
Task<bool?> ShowIsActiveDialog(bool currentIsActive);
|
||||
}
|
||||
Reference in New Issue
Block a user