using Logger; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using UIShare.UIViewModel; namespace UIShare.GlobalVariable { public class SystemConfig { [JsonIgnore] public string SystemPath { get; set; } = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "ADP"); [JsonIgnore] public string DLLFilePath { get; set; } = @"D:\ADP\指令\"; [JsonIgnore] public string TSMasterName { get; set; } = "ADP测试上位机"; public string SubProgramFilePath { get; set; } = @"D:\ADP\子程序\"; public string Title { get; set; } = string.Empty; public int PerformanceLevel { get; set; } = 50; public string DefaultProgramFilePath { get; set; } = ""; public string DefaultBLFFilePath { get; set; } = ""; public string DefaultDBCFilePath { get; set; } = ""; public ObservableCollection DeviceList = new(); // public ObservableCollection DeviceList { get; set; } = new() //{ // new DeviceInfoModel // { // DeviceName = "IT7800E", // DeviceType = "IT7800E", // Remark = "交流可编程电源供应器", // ConnectionType = "Tcp", // IsEnabled = true, // IsConnected = false // }, // new DeviceInfoModel // { // DeviceName = "N36200", // DeviceType = "N36200", // Remark = "宽范围可编程直流电源", // ConnectionType = "Tcp", // IsEnabled = true, // IsConnected = false // }, // new DeviceInfoModel // { // DeviceName = "N36600", // DeviceType = "N36600", // Remark = "便携式宽范围可编程直流电源", // ConnectionType = "Tcp", // IsEnabled = false, // IsConnected = false // }, // new DeviceInfoModel // { // DeviceName = "N69200", // DeviceType = "N69200", // Remark = "可编程直流电子负载", // ConnectionType = "Tcp", // IsEnabled = true, // IsConnected = false // }, // new DeviceInfoModel // { // DeviceName = "SDS2000X_HD", // DeviceType = "SDS2000X_HD", // Remark = "数字存储示波器", // ConnectionType = "Tcp", // IsEnabled = true, // IsConnected = false // }, // new DeviceInfoModel // { // DeviceName = "SPAW7000", // DeviceType = "SPAW7000", // Remark = "功率分析记录仪", // ConnectionType = "Tcp", // IsEnabled = true, // IsConnected = false // } //}; } }