using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Aucma.Core.SheetMetal.Common { public class AppConfigHelper { private static IniHelper iniHelper = new IniHelper(System.Environment.CurrentDirectory + "/config/App.InI"); //private static readonly AppConfigHelper lazy = new AppConfigHelper(); //public static AppConfigHelper Instance //{ // get // { // return lazy; // } //} public AppConfigHelper() { } public string searchItems { get { return iniHelper.IniReadValue("system", "searchItems"); } set { iniHelper.IniWriteValue("system", "searchItems", value); } } public string queryExec { get { return iniHelper.IniReadValue("system", "ExecState"); } set { iniHelper.IniWriteValue("system", "ExecState", value); } } } }