using BPA.Helper; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections.ObjectModel; namespace BPA.Model { public class RecipeInfo : NotifyBase { /// /// 配方ID /// public string Id { get { return _mId; } set { _mId = value; OnPropertyChanged(); } } private string _mId; /// /// 配方名称 /// public string Name { get { return _mName; } set { _mName = value; OnPropertyChanged(); } } private string _mName; /// /// 是否启用 /// public bool IsEnable { get { return _mIsEnable; } set { if (_mIsEnable != value) { _mIsEnable = value; OnPropertyChanged(); EnableChange?.Invoke(Id); } } } private bool _mIsEnable = true; /// /// 最后修改时间 /// public string LastModified { get { return _mLastModified; } set { _mLastModified = value; OnPropertyChanged(); } } private string _mLastModified; public static Action EnableChange { get; set; } ///// ///// 原料名称集合 ///// //public ObservableCollection RawMaters { get; set; } = new ObservableCollection(); ///// ///// 原料id列表 ///// //public List RawMaterIds { get; set; } = new List(); } }