IsErrorAttribute.cs 625 Bytes
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Misc
{
    /// <summary>
    /// PLC 寄存器用于报警
    /// </summary>
    public class IsErrorAttribute : Attribute
    {
        /// <summary>
        /// 这个属性用于报警
        /// </summary>
17
        public IsErrorAttribute() //(bool offIsError = false)
潘栩锋's avatar
潘栩锋 committed
18
        {
19
            //OffIsError = offIsError;
潘栩锋's avatar
潘栩锋 committed
20 21 22 23 24
        }

        /// <summary>
        /// 属性的值为false, 为报警状态
        /// </summary>
25
        //public bool OffIsError { get; private set; }
潘栩锋's avatar
潘栩锋 committed
26 27 28

    }
}