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