global using BPA.Helper; using BPA.Helper; using BPASmartClient.Model; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BPASmartClient.MilkWithTea.ViewModel { public class MainWindowVeiwModel : NotifyBase { public bool AutoStart { get { return SystemHelper.GetInstance.IsAutoStart(); } set { SystemHelper.GetInstance.AutoStart(value); OnPropertyChanged(); } } public MainWindowVeiwModel() { Json.Read(); Json.Read(); if (Json.Data.localMaterails.Count<14) { Json.Data.localMaterails.Clear(); for (int i = 1; i < 15; i++) { Json.Data.localMaterails.Add(new LocalMaterail { MaterialID = Guid.NewGuid().ToString(), MaterialPosition = i });; } } } } }