领胜LDS 键盘AOI检测项目
wells.liu
2020-07-06 99587d3c26f5b952cb7dc87a56be91b08c5d277b
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
31
32
33
34
35
36
37
38
39
using Bro.Device.Common.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Bro.Device.Common.Helper;
using System.ComponentModel.DataAnnotations.Schema;
 
namespace Common.Base
{
    public class ProcessBase : IProcess
    {
        private EnumHelper.ProcessState _currentState = EnumHelper.ProcessState.Idel;
 
        [NotMapped]
        public EnumHelper.ProcessState CurrentState
        {
            get
            {
                return _currentState;
            }
 
            set
            {
                if (value != _currentState)
                {
                    _currentState = value;
                    OnStateChanged();
                }
            }
        }
 
        public void OnStateChanged()
        {
            //throw new NotImplementedException();
        }
    }
}