给应用添加图标,完成给设备添加变量表的功能

This commit is contained in:
2025-07-02 12:01:20 +08:00
parent 663e4fda0c
commit dbf7b81d4b
20 changed files with 326 additions and 151 deletions

View File

@@ -56,6 +56,21 @@ public class DialogService :IDialogService
return false;
}
public async Task<VariableTable> ShowAddVarTableDialog(Device device)
{
VarTableDialogViewModel vm = new();
vm.Title = "添加变量表";
vm.PrimaryButtonText = "添加变量表";
vm.VariableTable = new VariableTable();
var dialog = new VarTableDialog(vm);
var res = await dialog.ShowAsync();
if (res == ContentDialogResult.Primary)
{
return vm.VariableTable;
}
return null;
}
public void ShowMessageDialog(string title, string message)
{