Files
DMS/Services/IDialogService.cs

32 lines
1.4 KiB
C#
Raw Normal View History

2025-07-04 14:15:44 +08:00
using iNKORE.UI.WPF.Modern.Controls;
2025-07-05 16:13:46 +08:00
using PMSWPF.Enums;
2025-07-04 14:15:44 +08:00
using PMSWPF.Models;
namespace PMSWPF.Services;
public interface IDialogService
{
2025-06-12 18:56:25 +08:00
Task<Device> ShowAddDeviceDialog();
2025-07-01 21:34:20 +08:00
Task<Device> ShowEditDeviceDialog(Device device);
Task<Mqtt> ShowAddMqttDialog();
Task<Mqtt> ShowEditMqttDialog(Mqtt mqtt);
2025-07-01 21:34:20 +08:00
Task<bool> ShowConfrimeDialog(string title, string message,string buttonText="确认");
2025-07-03 12:55:00 +08:00
Task<VariableTable> ShowAddVarTableDialog();
Task<VariableTable> ShowEditVarTableDialog(VariableTable variableTable);
2025-07-03 12:55:00 +08:00
Task<Variable> ShowAddVarDataDialog();
void ShowMessageDialog(string title, string message);
Task<Variable> ShowEditVarDataDialog(Variable variable);
2025-07-04 13:40:14 +08:00
Task<string> ShowImportExcelDialog();
2025-07-04 14:15:44 +08:00
ContentDialog ShowProcessingDialog(string title, string message);
2025-07-05 16:13:46 +08:00
Task<PollLevelType?> ShowPollLevelDialog(PollLevelType pollLevelType);
2025-07-05 18:15:21 +08:00
Task<Mqtt?> ShowMqttSelectionDialog();
Task<List<Variable>> ShowOpcUaImportDialog(string endpointUrl);
Task<OpcUaUpdateType?> ShowOpcUaUpdateTypeDialog();
2025-07-16 15:50:57 +08:00
Task<bool?> ShowIsActiveDialog(bool currentIsActive);
2025-07-17 09:45:58 +08:00
Task ShowImportResultDialog(List<string> importedVariables, List<string> existingVariables);
Task<string?> ShowMqttAliasDialog(string variableName, string mqttServerName);
Task<List<VariableMqtt>> ShowMqttAliasBatchEditDialog(List<Variable> selectedVariables, Mqtt selectedMqtt);
}