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;
|
2025-06-12 13:15:55 +08:00
|
|
|
|
|
|
|
|
|
|
namespace PMSWPF.Services;
|
|
|
|
|
|
|
2025-06-26 19:36:27 +08:00
|
|
|
|
public interface IDialogService
|
2025-06-12 13:15:55 +08:00
|
|
|
|
{
|
2025-06-12 18:56:25 +08:00
|
|
|
|
Task<Device> ShowAddDeviceDialog();
|
2025-07-01 21:34:20 +08:00
|
|
|
|
Task<Device> ShowEditDeviceDialog(Device device);
|
2025-07-04 22:39:44 +08:00
|
|
|
|
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-02 12:01:20 +08:00
|
|
|
|
|
2025-07-03 12:55:00 +08:00
|
|
|
|
Task<VariableTable> ShowAddVarTableDialog();
|
2025-07-16 18:39:00 +08:00
|
|
|
|
Task<VariableTable> ShowEditVarTableDialog(VariableTable variableTable);
|
2025-07-03 12:55:00 +08:00
|
|
|
|
|
2025-07-17 20:13:21 +08:00
|
|
|
|
Task<Variable> ShowAddVarDataDialog();
|
2025-06-13 18:54:17 +08:00
|
|
|
|
|
|
|
|
|
|
void ShowMessageDialog(string title, string message);
|
2025-07-17 20:13:21 +08:00
|
|
|
|
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();
|
2025-07-17 20:13:21 +08:00
|
|
|
|
Task<List<Variable>> ShowOpcUaImportDialog(string endpointUrl);
|
2025-07-13 16:22:07 +08:00
|
|
|
|
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);
|
2025-07-17 17:28:12 +08:00
|
|
|
|
Task<string?> ShowMqttAliasDialog(string variableName, string mqttServerName);
|
2025-07-17 20:13:21 +08:00
|
|
|
|
Task<List<VariableMqtt>> ShowMqttAliasBatchEditDialog(List<Variable> selectedVariables, Mqtt selectedMqtt);
|
2025-06-12 13:15:55 +08:00
|
|
|
|
}
|