using HighWayIot.Common; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HighWayIot.Config { public sealed class AppConfig { private static IniHelper iniHelper = new IniHelper(System.Environment.CurrentDirectory + "/config/App.InI"); private static readonly Lazy lazy = new Lazy(() => new AppConfig()); public static AppConfig Instance { get { return lazy.Value; } } private AppConfig() { } /// /// 工位编号 /// public string stationCode { get { return iniHelper.IniReadValue("system", "stationCode"); } set { iniHelper.IniWriteValue("system", "stationCode", value); } } /// /// 箱壳库编号 /// public string shellStoreCode { get { return iniHelper.IniReadValue("system", "shellStoreCode"); } set { iniHelper.IniWriteValue("system", "shellStoreCode", value); } } /// /// 内胆库编号 /// public string linerStoreCode { get { return iniHelper.IniReadValue("system", "linerStoreCode"); } set { iniHelper.IniWriteValue("system", "linerStoreCode", value); } } } }