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();
|
|
|
|
|
|
|
|
|
|
|
|
Task<VariableData> ShowAddVarDataDialog();
|
2025-06-13 18:54:17 +08:00
|
|
|
|
|
|
|
|
|
|
void ShowMessageDialog(string title, string message);
|
2025-07-03 15:29:07 +08:00
|
|
|
|
Task<VariableData> ShowEditVarDataDialog(VariableData variableData);
|
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-09 21:35:51 +08:00
|
|
|
|
Task<List<VariableData>> ShowOpcUaImportDialog(string endpointUrl);
|
2025-06-12 13:15:55 +08:00
|
|
|
|
}
|