using DMS.Application.DTOs; using DMS.Core.Enums; using DMS.Core.Models; namespace DMS.Application.Events { /// /// 变量变更事件参数 /// public class VariableChangedEventArgs : System.EventArgs { /// /// 变更类型 /// public ActionChangeType ChangeType { get; } /// /// 变量DTO /// public Variable Variable { get; } /// /// 发生变化的属性类型 /// public VariablePropertyType PropertyType { get; } /// /// 构造函数 /// /// 变更类型 /// 变量DTO /// 发生变化的属性类型 public VariableChangedEventArgs(ActionChangeType changeType, Variable variable, VariablePropertyType propertyType = VariablePropertyType.All) { ChangeType = changeType; Variable = variable; PropertyType = propertyType; } } }