初步完成变更新
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using AutoMapper;
|
||||
using DMS.Application.DTOs;
|
||||
using DMS.Application.DTOs.Events;
|
||||
using DMS.Core.Models;
|
||||
using DMS.Application.Interfaces;
|
||||
using DMS.Core.Interfaces;
|
||||
using DMS.Core.Models;
|
||||
@@ -83,6 +84,11 @@ public class DataCenterService : IDataCenterService
|
||||
/// </summary>
|
||||
public event EventHandler<DataChangedEventArgs> DataChanged;
|
||||
|
||||
/// <summary>
|
||||
/// 当变量值发生变化时触发
|
||||
/// </summary>
|
||||
public event EventHandler<VariableValueChangedEventArgs> VariableValueChanged;
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
@@ -823,4 +829,16 @@ public class DataCenterService : IDataCenterService
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 事件触发方法
|
||||
|
||||
/// <summary>
|
||||
/// 触发变量值变更事件
|
||||
/// </summary>
|
||||
public virtual void OnVariableValueChanged(VariableValueChangedEventArgs e)
|
||||
{
|
||||
VariableValueChanged?.Invoke(this, e);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user