将所有的仓库异步方法都在名称后面添加Async

This commit is contained in:
2025-07-16 19:37:13 +08:00
parent f24769e94c
commit 9fb9e53331
17 changed files with 140 additions and 138 deletions

View File

@@ -3,7 +3,7 @@ using CommunityToolkit.Mvvm.ComponentModel;
using PMSWPF.Enums;
using SqlSugar;
using SqlSugar.DbConvert;
using S7.Net; // Add this using directive
using S7.Net; // AddAsync this using directive
namespace PMSWPF.Models;
@@ -42,6 +42,12 @@ public partial class Device : ObservableObject
[ObservableProperty]
private bool isActive = true;
public event Action<Device,bool> OnDeviceIsActiveChanged ;
partial void OnIsActiveChanged(bool isActive){
OnDeviceIsActiveChanged?.Invoke(this,isActive);
}
/// <summary>
/// 表示是否添加默认变量表。
/// </summary>