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 CustomerInfor:BindableBase { public ObservableCollection CustomerName { get; set; } public CustomerInfor() { CustomerName = new ObservableCollection(); } public void ReadConfig() { var res = DataHelp.ReadJsonFile(GVariable.CustomerCofig); this.CustomerName = res.CustomerName; } public void WriteConfig() { DataHelp.WriteJsonFile(this, GVariable.CustomerCofig); } } }