refactor:将AppDataCenterService改为AppCenterService,将AppDataStorageService改为AppStorageService,将触发器的增删改成合并

This commit is contained in:
2025-10-18 17:18:09 +08:00
parent 816827e5e9
commit 595139fb02
64 changed files with 1159 additions and 599 deletions

View File

@@ -9,11 +9,11 @@ namespace DMS.Application.Services;
/// </summary>
public class EventService : IEventService
{
private readonly IAppDataStorageService _appDataStorageService;
private readonly IAppStorageService _appStorageService;
public EventService(IAppDataStorageService appDataStorageService)
public EventService(IAppStorageService appStorageService)
{
_appDataStorageService = appDataStorageService;
_appStorageService = appStorageService;
}
#region
@@ -188,4 +188,23 @@ public class EventService : IEventService
}
#endregion
#region
/// <summary>
/// 触发器与变量关联改变事件
/// </summary>
public event EventHandler<TriggerVariableChangedEventArgs> OnTriggerVariableChanged;
/// <summary>
/// 触发触发器与变量关联改变事件
/// </summary>
/// <param name="sender">事件发送者</param>
/// <param name="e">触发器与变量关联改变事件参数</param>
public void RaiseTriggerVariableChanged(object sender, TriggerVariableChangedEventArgs e)
{
OnTriggerVariableChanged?.Invoke(sender, e);
}
#endregion
}