using Prism.Mvvm; namespace PLCSharp.Core.Common { public enum CellState { 无料 = 0, 有料 = 1, 允许 = 2, 完成 = 3, 请求 = 4, 确认 = 5, OK = 100, NG = 101 } /// /// Cell信息 /// public class CellInfo : BindableBase { private int _Index; /// /// 单元格索引 /// public int Index { get { return _Index; } set { SetProperty(ref _Index, value); } } private int _Row; /// /// 行号 /// public int Row { get { return _Row; } set { SetProperty(ref _Row, value); } } private int _Column; /// /// 列号 /// public int Column { get { return _Column; } set { SetProperty(ref _Column, value); } } private CellState _State; /// /// 状态标志 /// public CellState State { get { return _State; } set { SetProperty(ref _State, value); _CellChanged?.Invoke(this, _State); } } private string _Info; /// /// 附加信息 /// public string Info { get { return _Info; } set { SetProperty(ref _Info, value); } } private string _Tag; /// /// 标签 /// public string Tag { get { return _Tag; } set { SetProperty(ref _Tag, value); } } public event EventHandler _CellChanged; } }