using LogoForceTestApp.Modules.MainModule.Method; using Prism.Mvvm; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LogoForceTestApp.Modules.MainModule.Models { public class MulProductModel : BindableBase { private ObservableCollection _ProductCollection; public ObservableCollection ProductCollection { get { return _ProductCollection; } set { SetProperty(ref _ProductCollection, value); } } public MulProductModel() { ProductCollection = new ObservableCollection(); } public void SaveParame() { DataHelp.WriteJsonFile(this, GVariable.ProductsConfig); } public void LoadParame() { var res= DataHelp.ReadJsonFile(GVariable.ProductsConfig); this.ProductCollection = res.ProductCollection; } } }