完成S7变量启用和停用更新
This commit is contained in:
45
DMS.Application/Events/VariableTableChangedEventArgs.cs
Normal file
45
DMS.Application/Events/VariableTableChangedEventArgs.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using DMS.Application.DTOs;
|
||||
using DMS.Core.Enums;
|
||||
|
||||
namespace DMS.Application.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// 变量表变更事件参数
|
||||
/// </summary>
|
||||
public class VariableTableChangedEventArgs : System.EventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// 变更类型
|
||||
/// </summary>
|
||||
public DataChangeType ChangeType { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 变量表DTO
|
||||
/// </summary>
|
||||
public VariableTableDto VariableTable { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 关联的设备DTO
|
||||
/// </summary>
|
||||
public DeviceDto Device { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 变更时间
|
||||
/// </summary>
|
||||
public DateTime ChangeTime { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
/// <param name="changeType">变更类型</param>
|
||||
/// <param name="variableTable">变量表DTO</param>
|
||||
/// <param name="device">关联的设备DTO</param>
|
||||
public VariableTableChangedEventArgs(DataChangeType changeType, VariableTableDto variableTable, DeviceDto device)
|
||||
{
|
||||
ChangeType = changeType;
|
||||
VariableTable = variableTable;
|
||||
Device = device;
|
||||
ChangeTime = DateTime.Now;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user