领胜LDS 键盘AOI检测项目
wells.liu
2020-07-01 e9f47e76b9932949c9df829e98b09938eb93e870
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using Bro.Common.Helper;
using System;
using System.Collections.Generic;
using static Bro.Common.Helper.EnumHelper;
 
namespace Bro.Common.Model
{
    public class IOItem : IComplexDisplay
    {
        /// <summary>
        /// IO点编号
        /// </summary>
        public int IONum { get; set; }
 
        /// <summary>
        /// IO点的值
        /// </summary>
        public int Value { get; set; }
 
        /// <summary>
        /// IO点是in还是out
        /// </summary>   
        public IOModel Model { get; set; }
 
        public string GetDisplayText()
        {
            return $"{Model.GetEnumDescription()},编号{IONum},IO点的值{Value}";
        }
    }
}