using CommunityToolkit.Mvvm.ComponentModel; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Common.Models { [Serializable] public class SourcePowderBottleBoxModel : BaseBottleBox { private PowderBottleTypeEnum powderbottletype = PowderBottleTypeEnum._16mL; /// /// 粉末瓶类型 /// public PowderBottleTypeEnum PowderBottleType { get { return powderbottletype; } set { SetProperty(ref powderbottletype, value); } } //private bool havebox; ///// ///// 是否有 粉末瓶工装 ///// //public bool HaveBox //{ // get { return havebox; } // set { SetProperty(ref havebox, value); } //} //private int boxId; ///// ///// 粉末瓶工装的位置号(1-6) ///// //public int BoxId //{ // get { return boxId; } // set { SetProperty(ref boxId, value); } //} private ObservableCollection sourcepowderbottlecollection = new ObservableCollection(); /// /// 一个粉末瓶工装中的粉末瓶集合(4个粉末瓶) /// public ObservableCollection SourcePowderBottleCollection { get { return sourcepowderbottlecollection; } set { SetProperty(ref sourcepowderbottlecollection, value); } } public SourcePowderBottleBoxModel() { } } [Serializable] public class SourcePowderBottleBoxModel_125ml : BaseBottleBox { private PowderBottleTypeEnum powderbottletype = PowderBottleTypeEnum._125mL; /// /// 粉末瓶类型 /// public PowderBottleTypeEnum PowderBottleType { get { return powderbottletype; } set { SetProperty(ref powderbottletype, value); } } //private bool havebox; ///// ///// 是否有 粉末瓶工装 ///// //public bool HaveBox //{ // get { return havebox; } // set { SetProperty(ref havebox, value); } //} //private int boxId; ///// ///// 粉末瓶工装的位置号(1-6) ///// //public int BoxId //{ // get { return boxId; } // set { SetProperty(ref boxId, value); } //} private ObservableCollection sourcepowderbottlecollection = new ObservableCollection(); /// /// 一个粉末瓶工装中的粉末瓶集合(4个粉末瓶) /// public ObservableCollection SourcePowderBottleCollection { get { return sourcepowderbottlecollection; } set { SetProperty(ref sourcepowderbottlecollection, value); } } public SourcePowderBottleBoxModel_125ml() { } } }