using PdmSwPlugin.Common.Entity; using SolidWorks.Interop.sldworks; using System; using System.Collections.ObjectModel; namespace PdmSwPlugin.PriceCheck.Model { public partial class PriceCheckModel : NotifyBase { private SldWorks SwApp; public PriceCheckModel(SldWorks SwApp,Action action) { this.SwApp = SwApp; ModelProperty.Changed += action; PropertyList.Add(ModelProperty); } public ModelProperty ModelProperty = new ModelProperty(); private ObservableCollection _propertyList = new ObservableCollection() { }; public ObservableCollection PropertyList { get => _propertyList; set => RaiseAndSetIfChanged(ref _propertyList, value); } } }