添加批量修改激活状态

This commit is contained in:
2025-07-16 15:50:57 +08:00
parent 77363efcf6
commit b17ee045ff
7 changed files with 93 additions and 10 deletions

View File

@@ -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;
}
}

View File

@@ -24,4 +24,5 @@ public interface IDialogService
Task<Mqtt?> ShowMqttSelectionDialog();
Task<List<VariableData>> ShowOpcUaImportDialog(string endpointUrl);
Task<OpcUaUpdateType?> ShowOpcUaUpdateTypeDialog();
Task<bool?> ShowIsActiveDialog(bool currentIsActive);
}