Files
DMS/DMS.Application/Events/VariableChangedEventArgs.cs

40 lines
1.1 KiB
C#
Raw Normal View History

2025-09-16 14:42:23 +08:00
using DMS.Application.DTOs;
2025-09-16 12:29:09 +08:00
using DMS.Core.Enums;
using DMS.Core.Models;
2025-09-02 21:06:39 +08:00
2025-09-16 14:42:23 +08:00
namespace DMS.Application.Events
2025-09-02 21:06:39 +08:00
{
/// <summary>
/// 变量变更事件参数
/// </summary>
public class VariableChangedEventArgs : System.EventArgs
{
/// <summary>
/// 变更类型
/// </summary>
public ActionChangeType ChangeType { get; }
2025-09-02 21:06:39 +08:00
/// <summary>
2025-09-02 21:50:27 +08:00
/// 变量DTO
2025-09-02 21:06:39 +08:00
/// </summary>
public Variable Variable { get; }
2025-09-02 21:06:39 +08:00
/// <summary>
/// 发生变化的属性类型
2025-09-02 21:06:39 +08:00
/// </summary>
public VariablePropertyType PropertyType { get; }
2025-09-02 21:06:39 +08:00
/// <summary>
/// 构造函数
/// </summary>
/// <param name="changeType">变更类型</param>
2025-09-02 21:50:27 +08:00
/// <param name="variable">变量DTO</param>
/// <param name="propertyType">发生变化的属性类型</param>
public VariableChangedEventArgs(ActionChangeType changeType, Variable variable, VariablePropertyType propertyType = VariablePropertyType.All)
2025-09-02 21:06:39 +08:00
{
ChangeType = changeType;
2025-09-02 21:50:27 +08:00
Variable = variable;
PropertyType = propertyType;
2025-09-02 21:06:39 +08:00
}
}
}