using FileDataUpload.Common; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace FileDataUpload.Entity { public sealed class AppConfig { private static INIFile iNIFile = new INIFile(System.Environment.CurrentDirectory + "/App.InI"); private static readonly Lazy lazy = new Lazy(() => new AppConfig()); public static AppConfig Instance { get { return lazy.Value; } } private AppConfig() { } //public int pushFlag_RivetingRing = Convert.ToInt32(iNIFile.IniReadValue("system", "pushFlag_RivetingRing")); //public int pushFlag_Stopper = Convert.ToInt32(iNIFile.IniReadValue("system", "pushFlag_Stopper")); //public int pushFlag_displacingValve = Convert.ToInt32(iNIFile.IniReadValue("system", "pushFlag_displacingValve")); /// /// 铆压环 推送标志位 /// public int pushFlag_RivetingRing { get { return Convert.ToInt32(iNIFile.IniReadValue("system", "pushFlag_RivetingRing")); } set { iNIFile.IniWriteValue("system", "pushFlag_RivetingRing", value.ToString()); } } /// /// 限位器 推送标志位 /// public int pushFlag_Stopper { get { return Convert.ToInt32(iNIFile.IniReadValue("system", "pushFlag_Stopper")); } set { iNIFile.IniWriteValue("system", "pushFlag_Stopper", value.ToString()); } } /// /// 排气阀片 推送标志位 /// public int pushFlag_displacingValve { get { return Convert.ToInt32(iNIFile.IniReadValue("system", "pushFlag_displacingValve")); } set { iNIFile.IniWriteValue("system", "pushFlag_displacingValve", value.ToString()); } } public string filePath { get { return iNIFile.IniReadValue("system", "filePath"); } } public string fileType { get { return iNIFile.IniReadValue("system", "fileType"); } } } }