消除所有错误,重新构建

This commit is contained in:
2025-07-26 10:05:43 +08:00
parent 3a3ed7a264
commit e292ea9da8
103 changed files with 4254 additions and 3783 deletions

View File

@@ -1,32 +1,31 @@
using DMS.Core.Enums;
using DMS.WPF.Models;
using iNKORE.UI.WPF.Modern.Controls;
namespace DMS.Services;
public interface IDialogService
{
Task<Device> ShowAddDeviceDialog();
Task<Device> ShowEditDeviceDialog(Device device);
Task<Mqtt> ShowAddMqttDialog();
Task<Mqtt> ShowEditMqttDialog(Mqtt mqtt);
Task<bool> ShowConfrimeDialog(string title, string message,string buttonText="确认");
Task<VariableTable> ShowAddVarTableDialog();
Task<VariableTable> ShowEditVarTableDialog(VariableTable variableTable);
Task<Variable> ShowAddVarDataDialog();
void ShowMessageDialog(string title, string message);
Task<Variable> ShowEditVarDataDialog(Variable variable);
Task<string> ShowImportExcelDialog();
ContentDialog ShowProcessingDialog(string title, string message);
Task<PollLevelType?> ShowPollLevelDialog(PollLevelType pollLevelType);
Task<Mqtt?> ShowMqttSelectionDialog();
Task<List<Variable>> ShowOpcUaImportDialog(string endpointUrl);
Task<OpcUaUpdateType?> ShowOpcUaUpdateTypeDialog();
Task<bool?> ShowIsActiveDialog(bool currentIsActive);
Task ShowImportResultDialog(List<string> importedVariables, List<string> existingVariables);
Task<string?> ShowMqttAliasDialog(string variableName, string mqttServerName);
Task<List<VariableMqtt>> ShowMqttAliasBatchEditDialog(List<Variable> selectedVariables, Mqtt selectedMqtt);
// Task<Device> ShowAddDeviceDialog();
// Task<Device> ShowEditDeviceDialog(Device device);
// Task<Mqtt> ShowAddMqttDialog();
// Task<Mqtt> ShowEditMqttDialog(Mqtt mqtt);
// Task<bool> ShowConfrimeDialog(string title, string message,string buttonText="确认");
//
// Task<VariableTable> ShowAddVarTableDialog();
// Task<VariableTable> ShowEditVarTableDialog(VariableTable variableTable);
//
// Task<Variable> ShowAddVarDataDialog();
//
// void ShowMessageDialog(string title, string message);
// Task<Variable> ShowEditVarDataDialog(Variable variable);
// Task<string> ShowImportExcelDialog();
// ContentDialog ShowProcessingDialog(string title, string message);
// Task<PollLevelType?> ShowPollLevelDialog(PollLevelType pollLevelType);
// Task<Mqtt?> ShowMqttSelectionDialog();
// Task<List<Variable>> ShowOpcUaImportDialog(string endpointUrl);
// Task<OpcUaUpdateType?> ShowOpcUaUpdateTypeDialog();
// Task<bool?> ShowIsActiveDialog(bool currentIsActive);
// Task ShowImportResultDialog(List<string> importedVariables, List<string> existingVariables);
// Task<string?> ShowMqttAliasDialog(string variableName, string mqttServerName);
// Task<List<VariableMqtt>> ShowMqttAliasBatchEditDialog(List<Variable> selectedVariables, Mqtt selectedMqtt);
}